mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	framework/config: add get_config_pont_map()
Add a function to generate a dict mapping names and aliases to corresponding configuration point objects.
This commit is contained in:
		
				
					committed by
					
						 marcbonnici
						marcbonnici
					
				
			
			
				
	
			
			
			
						parent
						
							07aa56f3bd
						
					
				
				
					commit
					78a569a2d3
				
			| @@ -1134,4 +1134,13 @@ def create_job_spec(workload_entry, sections, target_manager, plugin_cache, | ||||
|     return job_spec | ||||
|  | ||||
|  | ||||
| def get_config_point_map(params): | ||||
|     pmap = {} | ||||
|     for p in params: | ||||
|         pmap[p.name] = p | ||||
|         for alias in p.aliases: | ||||
|             pmap[alias] = p | ||||
|     return pmap | ||||
|  | ||||
|  | ||||
| settings = MetaConfiguration(os.environ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user