aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common
diff options
context:
space:
mode:
authorKubi <jean.gaoliang@huawei.com>2017-07-05 02:58:30 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-05 02:58:30 +0000
commite4f9020a21ed9508b177d9764e585bf7c88aa2c6 (patch)
treef1f2ee47d4de538c1c81cd87040ca17082b601cf /yardstick/common
parentffe83c920736716f0caea36dceeff7b7e910db7c (diff)
parenta2176af5514fc55ad8421635ad70ce4f26890ed6 (diff)
Merge "Use "OS_INSECURE" variable as the insecure mode indicator"
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)