aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-02-26 07:18:11 +0000
committerLinda Wang <wangwulin@huawei.com>2018-02-26 09:36:23 +0000
commit37c35db753425dfcd14be4e72b8aea95afaf7762 (patch)
tree8148e8a794fad9918311a9609d35c875ec4a2791
parentd6c5f7efe042f24bad35dab461d8820a7d507f7b (diff)
Fix KeyError of OS_AUTH_URL
Change-Id: Iaaa657ebb8ed017429b640ffaaf03b6d204e887a Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rw-r--r--functest/cli/commands/cli_os.py2
1 files changed, 1 insertions, 1 deletions
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