mirror of
https://github.com/lubuntu-team/lugito.git
synced 2025-03-10 06:31:09 +00:00
Make sure package_names is also recognized as a subdict.
This commit is contained in:
parent
838fc1d0ec
commit
af8caba6f5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user