Skip to content

Commit 7e13508

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Clean up password prompt work-arounds"
2 parents b2783dc + 46b8cad commit 7e13508

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

openstackclient/common/clientmanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ def __init__(
4545
self,
4646
cli_options=None,
4747
api_version=None,
48+
pw_func=None,
4849
):
4950
super(ClientManager, self).__init__(
5051
cli_options=cli_options,
5152
api_version=api_version,
52-
# TODO(dtroyer): Remove this when osc-lib 1.2 is released
53-
pw_func=shell.prompt_for_password,
53+
pw_func=pw_func,
5454
)
5555

5656
# TODO(dtroyer): For compatibility; mark this for removal when plugin

openstackclient/shell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def initialize_app(self, argv):
170170
self.client_manager = clientmanager.ClientManager(
171171
cli_options=self.cloud,
172172
api_version=self.api_version,
173+
pw_func=shell.prompt_for_password,
173174
)
174175

175176
def prepare_to_run_command(self, cmd):

0 commit comments

Comments
 (0)