We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b2783dc + 46b8cad commit 7e13508Copy full SHA for 7e13508
2 files changed
openstackclient/common/clientmanager.py
@@ -45,12 +45,12 @@ def __init__(
45
self,
46
cli_options=None,
47
api_version=None,
48
+ pw_func=None,
49
):
50
super(ClientManager, self).__init__(
51
cli_options=cli_options,
52
api_version=api_version,
- # TODO(dtroyer): Remove this when osc-lib 1.2 is released
53
- pw_func=shell.prompt_for_password,
+ pw_func=pw_func,
54
)
55
56
# TODO(dtroyer): For compatibility; mark this for removal when plugin
openstackclient/shell.py
@@ -170,6 +170,7 @@ def initialize_app(self, argv):
170
self.client_manager = clientmanager.ClientManager(
171
cli_options=self.cloud,
172
api_version=self.api_version,
173
+ pw_func=shell.prompt_for_password,
174
175
176
def prepare_to_run_command(self, cmd):
0 commit comments