diff options
author | 2018-02-26 07:18:11 +0000 | |
---|---|---|
committer | 2018-02-26 09:36:23 +0000 | |
commit | 37c35db753425dfcd14be4e72b8aea95afaf7762 (patch) | |
tree | 8148e8a794fad9918311a9609d35c875ec4a2791 /functest/cli | |
parent | d6c5f7efe042f24bad35dab461d8820a7d507f7b (diff) |
Fix KeyError of OS_AUTH_URL
Change-Id: Iaaa657ebb8ed017429b640ffaaf03b6d204e887a
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/cli')
-rw-r--r-- | functest/cli/commands/cli_os.py | 2 |
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 |