From: Yun Huang Date: Mon, 19 Mar 2018 15:42:58 +0000 (+0800) Subject: Workaround secure connection for Openstack X-Git-Tag: v1.1.2~177 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=aacc27236fa4c76ef4a31d513e8bec34ecdb9e3e;p=multicloud%2Fopenstack.git Workaround secure connection for Openstack Toggle the cert of secured endpoint of OpenStack by option: cloud-region.esr-system-info.ssl-insecure. Now it support ssl-insecure=True only. Change-Id: I77a2792333cc7d2294672baa9fe491573a7eef6d Issue-ID: MULTICLOUD-161 Signed-off-by: Yun Huang --- diff --git a/share/newton_base/util.py b/share/newton_base/util.py index 36c47620..e925d99a 100644 --- a/share/newton_base/util.py +++ b/share/newton_base/util.py @@ -90,7 +90,7 @@ class VimDriverUtils(object): if auth_state: auth.set_auth_state(auth_state) - return session.Session(auth=auth, verify=False) + return session.Session(auth=auth, verify=(vim['insecure']==False)) @staticmethod def get_auth_state(session_obj):