From 07362a5d05e9ab5d5e3145a60ce4d24ecaa78cba Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 21 Mar 2017 13:23:31 +0000 Subject: [PATCH] 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. --- wa/framework/configuration/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wa/framework/configuration/core.py b/wa/framework/configuration/core.py index 7eb5c69e..b1af03a9 100644 --- a/wa/framework/configuration/core.py +++ b/wa/framework/configuration/core.py @@ -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)