aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvalentin boucher <valentin.boucher@kontron.com>2018-02-26 15:24:54 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-26 15:24:54 +0000
commit0f32796cae2aec6f778758f377ca76ffac1c8215 (patch)
tree524198b7ebb616b1e70b1809d8b155a451ca5e8f
parent9c8dbc5be69b856c45ba61c525e74a4826f6a5c7 (diff)
parent37c35db753425dfcd14be4e72b8aea95afaf7762 (diff)
Merge "Fix KeyError of OS_AUTH_URL"
-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 47d55c963..d3e229c81 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