summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongbo tian <hongbo.tianhongbo@huawei.com>2017-06-21 08:55:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-06-21 08:55:22 +0000
commit9de3050873909448d675a47326cd4f153a47bef2 (patch)
tree452023d3c77f2c8361a92fa10b67107301dbb9a7
parent041a51d6d3ba5f2d9eabcf3501abb9af30ebc394 (diff)
parentdf80bf68817a93a2e8b080da411457a0955c23de (diff)
Merge "fix judgement for https+no credential case"
-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 f4e04b0c..e4284ad4 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)