summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2017-06-20 05:07:25 -0400
committerMatthewLi <matthew.lijun@huawei.com>2017-06-20 05:08:31 -0400
commitdf80bf68817a93a2e8b080da411457a0955c23de (patch)
treea94b06ee278e4714179a4c4454f56f3f5c9065ec
parent263e1a93ea6d1a3bbbf773efb41338bd789a1269 (diff)
fix judgement for https+no credential case
Change-Id: Id3d4e9af04f1882f69b8c9fe588355d76ad001c4 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
-rw-r--r--dovetail/utils/dovetail_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dovetail/utils/dovetail_utils.py b/dovetail/utils/dovetail_utils.py
index ae969408..573100c6 100644
--- a/dovetail/utils/dovetail_utils.py
+++ b/dovetail/utils/dovetail_utils.py
@@ -121,11 +121,11 @@ def source_env(env_file):
def get_ext_net_name(env_file, logger=None):
insecure_option = ''
insecure = os.getenv('OS_INSECURE',)
- if insecure == "true":
+ if insecure == "true" or insecure == "True":
insecure_option = ' --insecure '
else:
print "Warn: env variable OS_INSECUE is %s, if https+no credential \
- used, it should be set as true" % insecure
+ used, it should be set as true" % insecure
cmd_check = "openstack %s network list" % insecure_option
ret, msg = exec_cmd(cmd_check, logger)