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/opnfv_tests/openstack/snaps/snaps_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'functest/opnfv_tests/openstack/snaps/snaps_utils.py') diff --git a/functest/opnfv_tests/openstack/snaps/snaps_utils.py b/functest/opnfv_tests/openstack/snaps/snaps_utils.py index 59bd063c..4b1c9352 100644 --- a/functest/opnfv_tests/openstack/snaps/snaps_utils.py +++ b/functest/opnfv_tests/openstack/snaps/snaps_utils.py @@ -53,10 +53,9 @@ def get_credentials(proxy_settings_str=None, ssh_proxy_cmd=None): """ creds_override = None if hasattr(CONST, 'snaps_os_creds_override'): - creds_override = CONST.__getattribute__( - 'snaps_os_creds_override') + creds_override = getattr(CONST, 'snaps_os_creds_override') os_creds = openstack_tests.get_credentials( - os_env_file=CONST.__getattribute__('env_file'), + os_env_file=getattr(CONST, 'env_file'), proxy_settings_str=proxy_settings_str, ssh_proxy_cmd=ssh_proxy_cmd, overrides=creds_override) return os_creds -- cgit 1.2.3-korg