fix judgement for https+no credential case 27/36227/1
authorMatthewLi <matthew.lijun@huawei.com>
Tue, 20 Jun 2017 09:07:25 +0000 (05:07 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Tue, 20 Jun 2017 09:08:31 +0000 (05:08 -0400)
Change-Id: Id3d4e9af04f1882f69b8c9fe588355d76ad001c4
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
dovetail/utils/dovetail_utils.py

index ae96940..573100c 100644 (file)
@@ -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)