aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils/functest_utils.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-02-20 10:17:18 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-20 10:17:18 +0000
commit1a04979f3fff45117754653e20758d2ac6a02615 (patch)
tree001bd04d4370e232efb1a253ceb8e84ca5845a94 /functest/utils/functest_utils.py
parentde3160230a010e5fd2aaf03630e31e807aeee34f (diff)
parentedac6a883e0b80724140305258649b4891a2d14c (diff)
Merge "Remove last CONST.__getattribute__()"
Diffstat (limited to 'functest/utils/functest_utils.py')
-rw-r--r--functest/utils/functest_utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/functest/utils/functest_utils.py b/functest/utils/functest_utils.py
index b31b392d..72c9d207 100644
--- a/functest/utils/functest_utils.py
+++ b/functest/utils/functest_utils.py
@@ -157,14 +157,13 @@ def get_parameter_from_yaml(parameter, yfile):
def get_functest_config(parameter):
- yaml_ = constants.CONST.__getattribute__('CONFIG_FUNCTEST_YAML')
+ yaml_ = constants.Constants.CONFIG_FUNCTEST_YAML
return get_parameter_from_yaml(parameter, yaml_)
def get_functest_yaml():
# pylint: disable=bad-continuation
- with open(constants.CONST.__getattribute__(
- 'CONFIG_FUNCTEST_YAML')) as yaml_fd:
+ with open(constants.Constants.CONFIG_FUNCTEST_YAML) as yaml_fd:
functest_yaml = yaml.safe_load(yaml_fd)
return functest_yaml