mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +00:00 
			
		
		
		
	Merge pull request #506 from bjackman/next
PluginCache: Improve error message for ill-formed plugin config
This commit is contained in:
		@@ -83,6 +83,10 @@ class PluginCache(object):
 | 
			
		||||
            msg = 'configuration provided for unknown plugin "{}"'
 | 
			
		||||
            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():
 | 
			
		||||
            if (plugin_name not in GENERIC_CONFIGS and
 | 
			
		||||
                    name not in self.get_plugin_parameters(plugin_name)):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user