From af8caba6f5f374ca2b5b83266c0310432fae71ac Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sat, 30 Mar 2019 19:54:51 -0500 Subject: [PATCH] Make sure package_names is also recognized as a subdict. --- lugito/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lugito/config.py b/lugito/config.py index 5efe0b6..550d5a6 100644 --- a/lugito/config.py +++ b/lugito/config.py @@ -72,13 +72,17 @@ def update_config(config_file=DEFAULT_CONFIG_FILE): CONFIG['phabricator']['token'] = config['phabricator']['token'] CONFIG['phabricator']['hooks'] = {} + CONFIG['phabricator']['package_names'] = {} # Iterate through hooks for HMAC keys if 'phabricator.hooks' in config: - for key, value in config['phabricator.hooks'].items(): CONFIG['phabricator']['hooks'][key] = value + if 'phabricator.package_names' in config: + for key, value in config['phabricator.package_names'].items(): + CONFIG['phabricator']['package_names'][key] = value + CONFIG['connectors'] = {} # Iterate through available connectors