From bb282936a01221821988d51a3896907f8c3404ff Mon Sep 17 00:00:00 2001 From: Sascha Peilicke <saschpe@suse.de> Date: Thu, 26 Jul 2012 15:48:23 +0200 Subject: [PATCH] Honor '--insecure' commandline flag also for keystone authentication Currently, keystone auth fails with self-signed certificates. Change-Id: Ice89bcd0662038260bc4bd12058972bb35e61e3b --- glanceclient/shell.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/glanceclient/shell.py b/glanceclient/shell.py index cbc61cea..f22f645d 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)