mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
utils/types: Fix ParameterDict update method.
When updating a ParameterDict with another ParameterDict the unencoded values were being merged. Ensure consistent behaviour by implicitally iterating via `__iter__` which will cause ParameterDict values to be decoded before being re-endcoded as expected.
This commit is contained in:
parent
ee54a68b65
commit
494424c8ea
@ -782,10 +782,7 @@ class ParameterDict(dict):
|
||||
|
||||
def update(self, *args, **kwargs):
|
||||
for d in list(args) + [kwargs]:
|
||||
if isinstance(d, ParameterDict):
|
||||
dict.update(self, d)
|
||||
else:
|
||||
for k, v in d.items():
|
||||
for k, v in d:
|
||||
self[k] = v
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user