aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2017-06-30 06:27:23 +0000
committerJing Lu <lvjing5@huawei.com>2017-06-30 06:40:20 +0000
commita2176af5514fc55ad8421635ad70ce4f26890ed6 (patch)
tree0a332fd715b784075a1aaf5de769c91947a73019 /yardstick/common
parent79efa6e0d975dcd08aa5e29fc645d30601dfe927 (diff)
Use "OS_INSECURE" variable as the insecure mode indicator
Now we use "OS_CACERT" as the insecure mode indicator, it is better to use "OS_INSECURE". Change-Id: I1406193e27510390b4b8fd8f4751d8361560172f Signed-off-by: JingLu5 <lvjing5@huawei.com>
Diffstat (limited to 'yardstick/common')
-rw-r--r--yardstick/common/openstack_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yardstick/common/openstack_utils.py b/yardstick/common/openstack_utils.py
index 1f08344e4..8787e605a 100644
--- a/yardstick/common/openstack_utils.py
+++ b/yardstick/common/openstack_utils.py
@@ -79,7 +79,8 @@ def get_session():
except KeyError:
return session.Session(auth=auth)
else:
- cacert = False if cacert.lower() == "false" else cacert
+ insecure = os.getenv('OS_INSECURE', '').lower() == 'true'
+ cacert = False if insecure else cacert
return session.Session(auth=auth, verify=cacert)