mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 18:21:14 +00:00
Merge pull request #506 from bjackman/next
PluginCache: Improve error message for ill-formed plugin config
This commit is contained in:
commit
23b52a4b8e
@ -83,6 +83,10 @@ class PluginCache(object):
|
|||||||
msg = 'configuration provided for unknown plugin "{}"'
|
msg = 'configuration provided for unknown plugin "{}"'
|
||||||
raise ConfigError(msg.format(plugin_name))
|
raise ConfigError(msg.format(plugin_name))
|
||||||
|
|
||||||
|
if not hasattr(values, 'iteritems'):
|
||||||
|
msg = 'Plugin configuration for "{}" not a dictionary ({} is {})'
|
||||||
|
raise ConfigError(msg.format(plugin_name, repr(values), type(values)))
|
||||||
|
|
||||||
for name, value in values.iteritems():
|
for name, value in values.iteritems():
|
||||||
if (plugin_name not in GENERIC_CONFIGS and
|
if (plugin_name not in GENERIC_CONFIGS and
|
||||||
name not in self.get_plugin_parameters(plugin_name)):
|
name not in self.get_plugin_parameters(plugin_name)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user