From aacc27236fa4c76ef4a31d513e8bec34ecdb9e3e Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Mon, 19 Mar 2018 23:42:58 +0800 Subject: 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 --- share/newton_base/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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): -- cgit 1.2.3-korg