Merge "Stop raising keystoneauth1 exceptions in odl unit tests"
authorCedric Ollivier <cedric.ollivier@orange.com>
Mon, 26 Feb 2018 16:50:36 +0000 (16:50 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 26 Feb 2018 16:50:36 +0000 (16:50 +0000)
functest/cli/commands/cli_os.py

index 47d55c9..d3e229c 100644 (file)
@@ -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