mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-26 18:23:24 +01:00
Core: Fixed config point validation
Previously a config point would try to validate the name attribute of the object it was meant to be setting, rather than what it was meant to be setting it to.
This commit is contained in:
@ -267,7 +267,7 @@ class ConfigurationPoint(object):
|
||||
article = get_article(typename)
|
||||
raise ConfigError(msg.format(value, self.name, article, typename))
|
||||
if value is not None:
|
||||
self.validate_value(obj.name, value)
|
||||
self.validate_value(self.name, value)
|
||||
if self.merge and hasattr(obj, self.name):
|
||||
value = merge_config_values(getattr(obj, self.name), value)
|
||||
setattr(obj, self.name, value)
|
||||
|
Reference in New Issue
Block a user