From 961de9447288c431a47a42a31a70df23ccc726eb Mon Sep 17 00:00:00 2001 From: JingLu5 Date: Fri, 30 Jun 2017 06:27:23 +0000 Subject: 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 (cherry picked from commit a2176af5514fc55ad8421635ad70ce4f26890ed6) --- yardstick/common/openstack_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'yardstick/common/openstack_utils.py') 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) -- cgit 1.2.3-korg