From 9ae0b14e81fec9b578cdca88071c0d8d67f84259 Mon Sep 17 00:00:00 2001 From: Fred Park Date: Tue, 19 Jun 2018 08:10:00 -0700 Subject: [PATCH] Fix regression in keyvault conf loading - Resolves #214 --- convoy/settings.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/convoy/settings.py b/convoy/settings.py index 061dcda..ff6151d 100644 --- a/convoy/settings.py +++ b/convoy/settings.py @@ -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')