1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +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:
Sergei Trofimov 2017-11-29 11:35:22 +00:00 committed by marcbonnici
parent 07aa56f3bd
commit 78a569a2d3

View File

@ -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)