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:
Luka Peschke 2016-08-25 14:29:52 +02:00
parent 1d8378cc6c
commit 23d09258e6
1 changed files with 1 additions and 1 deletions

View File

@ -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)