1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00

Misc Utils: Fixed 'merge_dicts_simple'

Previously this function was ignoring the `other` parameter
and therefore not actually merging the two dictionaries.
This commit is contained in:
Marc Bonnici 2017-03-31 17:37:48 +01:00
parent fc45b94b4e
commit 519389859e

View File

@ -575,7 +575,7 @@ def merge_maps(m1, m2):
def merge_dicts_simple(base, other):
result = base.copy()
for key, value in (base or {}).iteritems():
for key, value in (other or {}).iteritems():
result[key] = merge_config_values(result.get(key), value)
return result