Merge "Fix client could not init glance client"

This commit is contained in:
Jenkins 2016-06-24 12:49:37 +00:00 committed by Gerrit Code Review
commit f27cbe6d21
1 changed files with 2 additions and 1 deletions

View File

@ -369,7 +369,7 @@ class MuranoShell(object):
# make args compatible with DefaultCLI/AuthCLI
args.os_token = args.os_auth_token
args.os_endpoint = endpoint
args.os_endpoint = ''
# avoid password prompt if no password given
args.os_password = args.os_password or '<no password>'
(v2_auth_url, v3_auth_url) = self._discover_auth_versions(
@ -399,6 +399,7 @@ class MuranoShell(object):
'region_name': args.os_region_name,
}
glance_kwargs = kwargs.copy()
del glance_kwargs['endpoint_type']
if args.api_timeout:
kwargs['timeout'] = args.api_timeout