mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
fw/rt_param_manager: Add support for aliased parameters
Additionally check for aliases when matching runtime parameters to their corresponding cfg points.
This commit is contained in:
parent
f2d6f351cb
commit
a9e254742a
@ -97,6 +97,6 @@ class RuntimeParameterManager(object):
|
||||
def get_cfg_point(self, name):
|
||||
name = caseless_string(name)
|
||||
for k, v in self.runtime_params.items():
|
||||
if name == k:
|
||||
if name == k or name in v.cfg_point.aliases:
|
||||
return v.cfg_point
|
||||
raise ConfigError('Unknown runtime parameter: {}'.format(name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user