mirror of
https://github.com/lubuntu-team/lugito.git
synced 2025-05-01 13:11:27 +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']['token'] = config['phabricator']['token']
|
||||||
|
|
||||||
CONFIG['phabricator']['hooks'] = {}
|
CONFIG['phabricator']['hooks'] = {}
|
||||||
|
CONFIG['phabricator']['package_names'] = {}
|
||||||
|
|
||||||
# Iterate through hooks for HMAC keys
|
# Iterate through hooks for HMAC keys
|
||||||
if 'phabricator.hooks' in config:
|
if 'phabricator.hooks' in config:
|
||||||
|
|
||||||
for key, value in config['phabricator.hooks'].items():
|
for key, value in config['phabricator.hooks'].items():
|
||||||
CONFIG['phabricator']['hooks'][key] = value
|
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'] = {}
|
CONFIG['connectors'] = {}
|
||||||
|
|
||||||
# Iterate through available connectors
|
# Iterate through available connectors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user