mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
Fixing config processing for extensions with non-identifier names.
Internally, WA expects extension names to be valid Python identifiers. When this is not the case, conversion takes place when loading configuration for the extension (e.g. "trace-cmd" gets converted to "trace_cmd"). The conversion is intended to be transparent to the user, so configuration stores values as they are provided by the user, however it needs to perform the conversion internally, e.g. when querying ExtensionLoader. This conversion was missing when performing a lookup of one of the internal structures, which was causing earlier-collected settings to not be propagated into the final config.
This commit is contained in:
parent
53f2eafd16
commit
2276ae0c5b
@ -668,7 +668,7 @@ class RunConfiguration(object):
|
||||
raw_list = self._raw_config.get(attr_name, [])
|
||||
for extname in raw_list:
|
||||
default_config = self.ext_loader.get_default_config(extname)
|
||||
ext_config[extname] = self._raw_config.get(extname, default_config)
|
||||
ext_config[extname] = self._raw_config.get(identifier(extname), default_config)
|
||||
list_name = '_global_{}'.format(attr_name)
|
||||
setattr(self, list_name, raw_list)
|
||||
setattr(self, attr_name, ext_config)
|
||||
|
Loading…
x
Reference in New Issue
Block a user