mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-16 07:40:48 +01: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:
parent
07aa56f3bd
commit
78a569a2d3
@ -1134,4 +1134,13 @@ def create_job_spec(workload_entry, sections, target_manager, plugin_cache,
|
|||||||
return job_spec
|
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)
|
settings = MetaConfiguration(os.environ)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user