Replaces client_kwargs by empty dict in ckclient/shell.py
ckclient.get_client() doesn't need the command-line args. The client_kwargs.update() altered the args, and caused the project_id field to be overwritten, leading to an invalid http request in some cases. Change-Id: I09fe3bc3c71a399bdcfaaa178543a2516494399b
This commit is contained in:
parent
1d8378cc6c
commit
23d09258e6
|
@ -255,7 +255,7 @@ class CloudkittyShell(object):
|
|||
"either --os-auth-url or via "
|
||||
"env[OS_AUTH_URL]")
|
||||
|
||||
client_kwargs = vars(args)
|
||||
client_kwargs = {}
|
||||
client_kwargs.update(self.auth_plugin.opts)
|
||||
client_kwargs['auth_plugin'] = self.auth_plugin
|
||||
client = ckclient.get_client(api_version, **client_kwargs)
|
||||
|
|
Loading…
Reference in New Issue