mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00: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:
parent
fc45b94b4e
commit
519389859e
@ -575,7 +575,7 @@ def merge_maps(m1, m2):
|
|||||||
|
|
||||||
def merge_dicts_simple(base, other):
|
def merge_dicts_simple(base, other):
|
||||||
result = base.copy()
|
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)
|
result[key] = merge_config_values(result.get(key), value)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user