From 1825aa713952288e4204ea3b38f0d3c0635a6918 Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Mon, 29 Jan 2018 07:37:37 +0000 Subject: Rename a common credential file for OS and K8S Change-Id: Ib8d24be4b29ab1de00d5dd5e3442146b2437cb94 Signed-off-by: Linda Wang --- functest/cli/commands/cli_os.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functest/cli/commands') diff --git a/functest/cli/commands/cli_os.py b/functest/cli/commands/cli_os.py index a543e845..7595caab 100644 --- a/functest/cli/commands/cli_os.py +++ b/functest/cli/commands/cli_os.py @@ -23,14 +23,14 @@ class OpenStack(object): self.os_auth_url = CONST.__getattribute__('OS_AUTH_URL') self.endpoint_ip = None self.endpoint_port = None - self.openstack_creds = CONST.__getattribute__('openstack_creds') + self.openstack_creds = CONST.__getattribute__('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 def ping_endpoint(self): if self.os_auth_url is None: - click.echo("Source the OpenStack credentials first '. $creds'") + click.echo("Source the OpenStack credentials first") exit(0) response = os.system("ping -c 1 " + self.endpoint_ip + ">/dev/null") if response == 0: -- cgit 1.2.3-korg