From edac6a883e0b80724140305258649b4891a2d14c Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 19 Feb 2018 20:49:00 +0100 Subject: Remove last CONST.__getattribute__() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I82f6aa1e723c88eebd4c7410da4b9741a482e9bc Signed-off-by: Cédric Ollivier --- functest/utils/functest_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'functest/utils') 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 -- cgit 1.2.3-korg