1
0
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:
Marc Bonnici 2018-12-13 16:27:02 +00:00 committed by setrofim
parent f2d6f351cb
commit a9e254742a

View File

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