Skip to content
Snippets Groups Projects
Commit 5d477bc9 authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

fix setting config for list parameters

parent 3e717842
No related branches found
No related tags found
No related merge requests found
......@@ -545,7 +545,10 @@ def update_config(section, update_data, scope=None):
# read in the config to ensure we've got current data
configuration = get_config(section)
configuration.update(update_data)
if isinstance(update_data, list):
configuration = update_data
else:
configuration.extend(update_data)
# read only the requested section's data.
scope.sections[section] = {section: configuration}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment