summaryrefslogtreecommitdiff
path: root/glanceclient
diff options
context:
space:
mode:
authorSascha Peilicke <saschpe@suse.de>2012-07-26 15:48:23 +0200
committerSascha Peilicke <saschpe@suse.de>2012-07-26 15:48:23 +0200
commitbb282936a01221821988d51a3896907f8c3404ff (patch)
tree3e78dc22837724f2c0ed94c37ccd409f6c5c25c3 /glanceclient
parent1e744f162ece85f14120a16180ed0f83fe9f1e09 (diff)
downloadpython-glanceclient-bb282936a01221821988d51a3896907f8c3404ff.tar.gz
Honor '--insecure' commandline flag also for keystone authentication
Currently, keystone auth fails with self-signed certificates. Change-Id: Ice89bcd0662038260bc4bd12058972bb35e61e3b
Diffstat (limited to 'glanceclient')
-rw-r--r--glanceclient/shell.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/glanceclient/shell.py b/glanceclient/shell.py
index cbc61ce..f22f645 100644
--- a/glanceclient/shell.py
+++ b/glanceclient/shell.py
@@ -205,7 +205,8 @@ class OpenStackImagesShell(object):
password=kwargs.get('password'),
tenant_id=kwargs.get('tenant_id'),
tenant_name=kwargs.get('tenant_name'),
- auth_url=kwargs.get('auth_url'))
+ auth_url=kwargs.get('auth_url'),
+ insecure=kwargs.get('insecure'))
service_type = kwargs.get('service_type') or 'image'
endpoint_type = kwargs.get('endpoint_type') or 'publicURL'
endpoint = _ksclient.service_catalog.url_for(
@@ -267,7 +268,8 @@ class OpenStackImagesShell(object):
'tenant_name': args.os_tenant_name,
'auth_url': args.os_auth_url,
'service_type': args.os_service_type,
- 'endpoint_type': args.os_endpoint_type
+ 'endpoint_type': args.os_endpoint_type,
+ 'insecure': args.insecure
}
endpoint, token = self._authenticate(**kwargs)