1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

configuration/plugin_cache: Add target names as allowed plugin configs

Allow setting of device configuration by specifying target name.
This commit is contained in:
Marc Bonnici 2018-02-15 13:30:27 +00:00 committed by setrofim
parent 52dca17fef
commit ed75764445

View File

@ -80,6 +80,7 @@ class PluginCache(object):
raise RuntimeError(msg.format(source))
if (not self.loader.has_plugin(plugin_name) and
plugin_name not in self.targets and
plugin_name not in GENERIC_CONFIGS):
msg = 'configuration provided for unknown plugin "{}"'
raise ConfigError(msg.format(plugin_name))