diff options
author | 2017-07-05 02:58:30 +0000 | |
---|---|---|
committer | 2017-07-05 02:58:30 +0000 | |
commit | e4f9020a21ed9508b177d9764e585bf7c88aa2c6 (patch) | |
tree | f1f2ee47d4de538c1c81cd87040ca17082b601cf /yardstick/common | |
parent | ffe83c920736716f0caea36dceeff7b7e910db7c (diff) | |
parent | a2176af5514fc55ad8421635ad70ce4f26890ed6 (diff) |
Merge "Use "OS_INSECURE" variable as the insecure mode indicator"
Diffstat (limited to 'yardstick/common')
-rw-r--r-- | yardstick/common/openstack_utils.py | 3 |
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) |