summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-12 13:16:45 +0000
committerGerrit Code Review <review@openstack.org>2017-06-12 13:16:45 +0000
commitb670c416f7e9b4db38496dc78593bb756136a737 (patch)
tree8d1543e68d3acd2a4278ce25a4eeedc3803fd78c
parent901ab883ff580792cd90e87c647e21dda49f17ef (diff)
parenta411f5f2728d9ba37ecbd8e3ca31e287f0866277 (diff)
Merge "Set verify to False when insecure is True"
-rw-r--r--monitorstack/utils/os_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitorstack/utils/os_utils.py b/monitorstack/utils/os_utils.py
index 2572d78..0a7bf1f 100644
--- a/monitorstack/utils/os_utils.py
+++ b/monitorstack/utils/os_utils.py
@@ -43,6 +43,7 @@ class OpenStack(object):
43 :type os_auth_args: dict 43 :type os_auth_args: dict
44 """ 44 """
45 self.os_auth_args = os_auth_args 45 self.os_auth_args = os_auth_args
46 self.verify = self.os_auth_args.get('insecure', True) is False
46 47
47 @property 48 @property
48 def conn(self): 49 def conn(self):
@@ -50,7 +51,7 @@ class OpenStack(object):
50 51
51 :returns: object 52 :returns: object
52 """ 53 """
53 return os_conn.Connection(**self.os_auth_args) 54 return os_conn.Connection(verify=self.verify, **self.os_auth_args)
54 55
55 def _session_req(self, path, service_type, interface='internal'): 56 def _session_req(self, path, service_type, interface='internal'):
56 """Return compute resource limits for a project. 57 """Return compute resource limits for a project.