From 83188918355b333675ed0c767b3ce60608455029 Mon Sep 17 00:00:00 2001 From: Luka Peschke Date: Thu, 25 Aug 2016 14:29:52 +0200 Subject: [PATCH] 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. Closes-Bug: #1616805 Change-Id: I09fe3bc3c71a399bdcfaaa178543a2516494399b --- cloudkittyclient/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudkittyclient/shell.py b/cloudkittyclient/shell.py index 1d8e2bd..903cb2c 100644 --- a/cloudkittyclient/shell.py +++ b/cloudkittyclient/shell.py @@ -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)