summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2016-08-29 18:14:26 -0500
committerDean Troyer <dtroyer@gmail.com>2016-08-29 19:22:06 -0500
commit84c83fc3aeebf8201a301f1864c3b8a1572111f1 (patch)
treea190fac7954cd1b585ec508e88b3c837580dcb10
parentc5f8f761de01e7dee7d65ccba40e8ee4cf116500 (diff)
downloadpython-openstackclient-84c83fc3aeebf8201a301f1864c3b8a1572111f1.tar.gz
Provide fallback prompt function for current osc-lib
Leaving the pw_func uninitialize in osc-lib turned out to be a bad idea as the test to prompt in setup_auth() doesn't check for a callback of None. Also, release note Change-Id: I8f875fa8a942d02a040238359ee22c603a4e5956
-rw-r--r--openstackclient/common/clientmanager.py3
-rw-r--r--releasenotes/notes/bug-1617384-55c88207115e2a5b.yaml5
2 files changed, 8 insertions, 0 deletions
diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py
index 9097543b..57423aed 100644
--- a/openstackclient/common/clientmanager.py
+++ b/openstackclient/common/clientmanager.py
@@ -20,6 +20,7 @@ import pkg_resources
import sys
from osc_lib import clientmanager
+from osc_lib import shell
LOG = logging.getLogger(__name__)
@@ -48,6 +49,8 @@ class ClientManager(clientmanager.ClientManager):
super(ClientManager, self).__init__(
cli_options=cli_options,
api_version=api_version,
+ # TODO(dtroyer): Remove this when osc-lib 1.2 is released
+ pw_func=shell.prompt_for_password,
)
# TODO(dtroyer): For compatibility; mark this for removal when plugin
diff --git a/releasenotes/notes/bug-1617384-55c88207115e2a5b.yaml b/releasenotes/notes/bug-1617384-55c88207115e2a5b.yaml
new file mode 100644
index 00000000..89b452be
--- /dev/null
+++ b/releasenotes/notes/bug-1617384-55c88207115e2a5b.yaml
@@ -0,0 +1,5 @@
+---
+fixes:
+ - |
+ Fix prompting for password issue introduced in release 3.0.0
+ [Bug `1617384 <https://bugs.launchpad.net/bugs/1617384>`_]