mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00: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:
parent
82acc16a7d
commit
07362a5d05
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user