From 72ba3c08dc477280f2fd56a154b72c997dd823fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Knecht?= Date: Mon, 13 Jul 2015 08:26:51 +0200 Subject: [PATCH] Fix authentication when prompting for a password If no password is supplied on the command-line or in the OS_PASSWORD environment variable, the user is prompted for their password. However, it wasn't being used when requesting a token, leading to an Unauthorized error, no matter if the password was correct or not. --- openstackclient/common/clientmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py index fae9563..c77a784 100644 --- a/openstackclient/common/clientmanager.py +++ b/openstackclient/common/clientmanager.py @@ -125,7 +125,7 @@ class ClientManager(object): # password auth is requested. if (self.auth_plugin_name.endswith('password') and not self._cli_options.auth.get('password', None)): - self._cli_options.os_password = self._pw_callback() + self._cli_options.auth['password'] = self._pw_callback() (auth_plugin, self._auth_params) = auth.build_auth_params( self.auth_plugin_name, -- 2.1.0