diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2018-02-22 16:36:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-22 16:36:55 +0000 |
commit | d701e9737f83ff29faba830df426b5a75c9746b1 (patch) | |
tree | 8e6299dcd2cfcd3d773cc523cb1c5a387d0d9681 /functest/cli | |
parent | 01b28068c727b54c34d5b20e3baad4c4e31d7761 (diff) | |
parent | fdbfe10922d09ee3dad407b10be0205082dddce3 (diff) |
Merge "Use constants for Functest config file"
Diffstat (limited to 'functest/cli')
-rw-r--r-- | functest/cli/commands/cli_os.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/cli/commands/cli_os.py b/functest/cli/commands/cli_os.py index 0cf28623..47d55c96 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 |