From: Linda Wang Date: Mon, 26 Feb 2018 07:18:11 +0000 (+0000) Subject: Fix KeyError of OS_AUTH_URL X-Git-Tag: opnfv-6.0.0~122^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=37c35db753425dfcd14be4e72b8aea95afaf7762;p=functest.git Fix KeyError of OS_AUTH_URL Change-Id: Iaaa657ebb8ed017429b640ffaaf03b6d204e887a Signed-off-by: Linda Wang --- 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