From 37c35db753425dfcd14be4e72b8aea95afaf7762 Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Mon, 26 Feb 2018 07:18:11 +0000 Subject: Fix KeyError of OS_AUTH_URL Change-Id: Iaaa657ebb8ed017429b640ffaaf03b6d204e887a Signed-off-by: Linda Wang --- functest/cli/commands/cli_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functest/cli/commands/cli_os.py') diff --git a/functest/cli/commands/cli_os.py b/functest/cli/commands/cli_os.py index 47d55c96..d3e229c8 100644 --- a/functest/cli/commands/cli_os.py +++ b/functest/cli/commands/cli_os.py @@ -20,7 +20,7 @@ from functest.utils import constants class OpenStack(object): def __init__(self): - self.os_auth_url = os.environ['OS_AUTH_URL'] + self.os_auth_url = os.environ.get('OS_AUTH_URL', None) self.endpoint_ip = None self.endpoint_port = None self.openstack_creds = constants.ENV_FILE -- cgit 1.2.3-korg