From fdbfe10922d09ee3dad407b10be0205082dddce3 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Wed, 21 Feb 2018 11:33:39 +0100 Subject: Use constants for Functest config file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit env_file can't be defined in a config file simply because it's an entry point (Jenkins jobs, end users) Change-Id: Ie23c0ef90efc839d60f0f3a9754c58746b1f3a00 Signed-off-by: Cédric Ollivier --- functest/cli/commands/cli_os.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functest/cli') diff --git a/functest/cli/commands/cli_os.py b/functest/cli/commands/cli_os.py index 0cf286238..47d55c963 100644 --- a/functest/cli/commands/cli_os.py +++ b/functest/cli/commands/cli_os.py @@ -14,7 +14,7 @@ import click from six.moves import urllib from functest.ci import check_deployment -from functest.utils.constants import CONST +from functest.utils import constants class OpenStack(object): @@ -23,7 +23,7 @@ class OpenStack(object): self.os_auth_url = os.environ['OS_AUTH_URL'] self.endpoint_ip = None self.endpoint_port = None - self.openstack_creds = getattr(CONST, 'env_file') + self.openstack_creds = constants.ENV_FILE if self.os_auth_url: self.endpoint_ip = urllib.parse.urlparse(self.os_auth_url).hostname self.endpoint_port = urllib.parse.urlparse(self.os_auth_url).port -- cgit 1.2.3-korg