mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +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:
		| @@ -782,11 +782,8 @@ 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(): | ||||
|                     self[k] = v | ||||
|             for k, v in d: | ||||
|                 self[k] = v | ||||
|  | ||||
|  | ||||
| class cpu_mask(object): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user