mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +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): |     def update(self, *args, **kwargs): | ||||||
|         for d in list(args) + [kwargs]: |         for d in list(args) + [kwargs]: | ||||||
|             if isinstance(d, ParameterDict): |             for k, v in d: | ||||||
|                 dict.update(self, d) |                 self[k] = v | ||||||
|             else: |  | ||||||
|                 for k, v in d.items(): |  | ||||||
|                     self[k] = v |  | ||||||
|  |  | ||||||
|  |  | ||||||
| class cpu_mask(object): | class cpu_mask(object): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user