summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-07-31 03:38:44 +0000
committerGerrit Code Review <review@openstack.org>2012-07-31 03:38:44 +0000
commitbb0b59bda131c9f1a65ffe99d95822fc29c5e59d (patch)
treec35742bb1a13c16d22257da05e2e38d5f7168537
parent158f7ccd743b9fee12d60b10cf0fe696d5d4ed34 (diff)
parentbb282936a01221821988d51a3896907f8c3404ff (diff)
downloadpython-glanceclient-bb0b59bda131c9f1a65ffe99d95822fc29c5e59d.tar.gz
Merge "Honor '--insecure' commandline flag also for keystone authentication"
-rw-r--r--glanceclient/shell.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/glanceclient/shell.py b/glanceclient/shell.py
index fe7a285..043d501 100644
--- a/glanceclient/shell.py
+++ b/glanceclient/shell.py
@@ -206,7 +206,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(
@@ -272,7 +273,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)