aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils/config.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-12-19 09:23:04 +0000
committerCédric Ollivier <cedric.ollivier@orange.com>2018-02-13 07:44:30 +0100
commit46f1037fe35bc249dca868b363107bc1bcd70469 (patch)
tree17945ba4933704fbbaa7b5602a1442f42f1ca93a /functest/utils/config.py
parent9e9e8c9b89fc7c419d1824190217897118800275 (diff)
Improve the way of setting values in CONST
Use setattr instead of internal method (__setattr__). It must be completed by patches fixing [1] [2] and [3]. [1] https://jira.opnfv.org/browse/FUNCTEST-930 [2] https://jira.opnfv.org/browse/FUNCTEST-931 [3] https://jira.opnfv.org/browse/FUNCTEST-932 Change-Id: I9558f33f5ed4559b6031d75951d5637c0c0ef8cb Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/utils/config.py')
-rw-r--r--functest/utils/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/utils/config.py b/functest/utils/config.py
index 050f12a9..c569856b 100644
--- a/functest/utils/config.py
+++ b/functest/utils/config.py
@@ -45,7 +45,7 @@ class Config(object):
for param_n, param_v in six.iteritems(left_parametes):
attr_further = self._get_attr_further(attr_now, param_n)
if attr_further:
- self.__setattr__(attr_further, param_v)
+ setattr(self, attr_further, param_v)
if isinstance(param_v, dict):
self._parse(attr_further, param_v)