summaryrefslogtreecommitdiff
path: root/keystoneclient/client.py
diff options
context:
space:
mode:
authorSascha Peilicke <saschpe@suse.de>2012-07-09 17:07:41 +0200
committerSascha Peilicke <saschpe@suse.de>2012-07-20 10:22:03 +0200
commitdec8f77c9233f195999b8db9adbd4f026834fd42 (patch)
treec8781c661b86f4eb67b9f562e8285819abb7ce4c /keystoneclient/client.py
parente77234bd3e9f49de509bd1ff776966e58be79904 (diff)
downloadpython-keystoneclient-0.1.2.tar.gz
Add '--insecure' commandline argument0.1.2
Allows to ignore validation errors that typically occur with self-signed SSL certificates. Making this explicit is important as one would typically only use this in development or in-house deployments. This should also fix bug 1012591. Change-Id: I1210fafc9257648c902176fbcfae9d47e47fc557
Diffstat (limited to 'keystoneclient/client.py')
-rw-r--r--keystoneclient/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/keystoneclient/client.py b/keystoneclient/client.py
index b53d7cf..4766551 100644
--- a/keystoneclient/client.py
+++ b/keystoneclient/client.py
@@ -39,7 +39,7 @@ class HTTPClient(httplib2.Http):
def __init__(self, username=None, tenant_id=None, tenant_name=None,
password=None, auth_url=None, region_name=None, timeout=None,
endpoint=None, token=None, cacert=None, key=None,
- cert=None):
+ cert=None, insecure=False):
super(HTTPClient, self).__init__(timeout=timeout, ca_certs=cacert)
if cert:
if key:
@@ -59,6 +59,7 @@ class HTTPClient(httplib2.Http):
# httplib2 overrides
self.force_exception_to_status_code = True
+ self.disable_ssl_certificate_validation = insecure
def authenticate(self):
""" Authenticate against the keystone API.