diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2018-02-13 10:13:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-13 10:13:36 +0000 |
commit | 5387e9adab29aa72a0cbdea0615799eccaf6781d (patch) | |
tree | 66aca6a665ba9ed5772e937f6511d54dcbb0177f /functest/utils/constants.py | |
parent | fb85975fee7c3c67d3b10df58e4b742034fbd2ab (diff) | |
parent | 46f1037fe35bc249dca868b363107bc1bcd70469 (diff) |
Merge "Improve the way of setting values in CONST"
Diffstat (limited to 'functest/utils/constants.py')
-rw-r--r-- | functest/utils/constants.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/utils/constants.py b/functest/utils/constants.py index cb3ea787..c19e0fc5 100644 --- a/functest/utils/constants.py +++ b/functest/utils/constants.py @@ -12,9 +12,9 @@ class Constants(object): # pylint: disable=too-few-public-methods def __init__(self): for attr_n, attr_v in six.iteritems(config.CONF.__dict__): - self.__setattr__(attr_n, attr_v) + setattr(self, attr_n, attr_v) for env_n, env_v in six.iteritems(env.ENV.__dict__): - self.__setattr__(env_n, env_v) + setattr(self, env_n, env_v) CONST = Constants() |