Родитель
2336a63990
Коммит
9ae0b14e81
|
@ -1586,9 +1586,8 @@ def credentials_batch(config):
|
||||||
creds = config['credentials']
|
creds = config['credentials']
|
||||||
except (KeyError, TypeError):
|
except (KeyError, TypeError):
|
||||||
raise ValueError('credentials not specified')
|
raise ValueError('credentials not specified')
|
||||||
conf = _kv_read_checked(creds, 'batch')
|
# allow conf to not exist due to later keyvault load
|
||||||
if conf is None:
|
conf = _kv_read_checked(creds, 'batch', default={})
|
||||||
raise ValueError('batch credentials not specified or invalid')
|
|
||||||
account_key = _kv_read_checked(conf, 'account_key')
|
account_key = _kv_read_checked(conf, 'account_key')
|
||||||
account_service_url = conf['account_service_url']
|
account_service_url = conf['account_service_url']
|
||||||
resource_group = _kv_read_checked(conf, 'resource_group')
|
resource_group = _kv_read_checked(conf, 'resource_group')
|
||||||
|
|
Загрузка…
Ссылка в новой задаче