mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-21 07:48:53 +01:00
Configuration: Added global_aliase
Previously `aliases` was conflated with global_aliases. This commit fixes this. `global_alias`'s are a name that can be used in top level configuration and set the values of one or more plugin parameters that use the same global_alias. `aliases` is a list of alternative names for a configuration point. Currently this is only used for instrumentation/instruments and workload_name/name but in the future it will likely be used when parameters have to be renamed to be more meaningful but still maintain backward compatibility.
This commit is contained in:
wlauto/core/configuration
@ -44,9 +44,9 @@ class PluginCache(object):
|
||||
self._list_of_global_aliases = set()
|
||||
for plugin in self.loader.list_plugins():
|
||||
for param in plugin.parameters:
|
||||
if param.aliases:
|
||||
self._global_alias_map[plugin.name][param.aliases] = param
|
||||
self._list_of_global_aliases.add(param.aliases)
|
||||
if param.global_alias:
|
||||
self._global_alias_map[plugin.name][param.global_alias] = param
|
||||
self._list_of_global_aliases.add(param.global_alias)
|
||||
|
||||
def add_source(self, source):
|
||||
if source in self.sources:
|
||||
|
Reference in New Issue
Block a user