Make sure package_names is also recognized as a subdict.

This commit is contained in:
Simon Quigley 2019-03-30 19:54:51 -05:00
parent 838fc1d0ec
commit af8caba6f5

View File

@ -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