From: rexlee8776 Date: Thu, 30 Mar 2017 02:37:02 +0000 (+0800) Subject: Bugfix: cacert should suppot insecure mode if needed X-Git-Tag: opnfv-5.0.RC1~516^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=aa477334a3cb2e49c4343f66bff44c89d7edcf24;p=yardstick.git 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 --- diff --git a/yardstick/common/openstack_utils.py b/yardstick/common/openstack_utils.py index 2df8fa565..788de0de4 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)