diff options
author | rexlee8776 <limingjiang@huawei.com> | 2017-03-30 10:37:02 +0800 |
---|---|---|
committer | Jing Lu <lvjing5@huawei.com> | 2017-06-28 07:23:31 +0000 |
commit | ac370f93eb345f9aee456cb19724902587c10209 (patch) | |
tree | cf5eb229c7dc85c7426c94a6b367cb2ce6937620 | |
parent | 2f9126f350bff38eec2ff452866e5a2ca3d0bdd7 (diff) |
Bugfix: cacert should suppot insecure mode if needed
currently, we use env variable "OS_CACERT" to specify the location of
cert file. but if there's no cacert and use for personal verification,
it's better to also support insecure mode by set OS_CACERT=False
JIRA: YARDSTICK-616
Change-Id: I73b0860863bf6386f9114328c52594ef87e02fa3
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
(cherry picked from commit aa477334a3cb2e49c4343f66bff44c89d7edcf24)
-rw-r--r-- | yardstick/common/openstack_utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yardstick/common/openstack_utils.py b/yardstick/common/openstack_utils.py index 5cc056f84..1f08344e4 100644 --- a/yardstick/common/openstack_utils.py +++ b/yardstick/common/openstack_utils.py @@ -79,6 +79,7 @@ def get_session(): except KeyError: return session.Session(auth=auth) else: + cacert = False if cacert.lower() == "false" else cacert return session.Session(auth=auth, verify=cacert) |