Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Fix regression in keyvault conf loading
Browse files Browse the repository at this point in the history
- Resolves #214
  • Loading branch information
alfpark committed Jun 19, 2018
1 parent 2336a63 commit 9ae0b14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions convoy/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1586,9 +1586,8 @@ def credentials_batch(config):
creds = config['credentials']
except (KeyError, TypeError):
raise ValueError('credentials not specified')
conf = _kv_read_checked(creds, 'batch')
if conf is None:
raise ValueError('batch credentials not specified or invalid')
# allow conf to not exist due to later keyvault load
conf = _kv_read_checked(creds, 'batch', default={})
account_key = _kv_read_checked(conf, 'account_key')
account_service_url = conf['account_service_url']
resource_group = _kv_read_checked(conf, 'resource_group')
Expand Down

0 comments on commit 9ae0b14

Please sign in to comment.