Pass prompt_for_password to OSC_Config constructor

In order to remove the OSC_Config from python-openstackclient, we need
to plumb the pw_func pieces through to the OSC_Config here. (we can
address removing OSC_Config from osc-lib later) Without doing this, the
logic in osc_lib/cli/client_config.py won't work because
self._pw_callback won't be set.

Change-Id: I16cb906983ea4036b958ed67ebfd042cf8e5aaf1
This commit is contained in:
Monty Taylor 2018-07-09 00:06:47 -04:00
parent f0837dbb27
commit d0c4f38a47
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 0 deletions

View File

@ -407,6 +407,7 @@ class OpenStackShell(app.App):
# will it be used.
try:
self.cloud_config = cloud_config.OSC_Config(
pw_func=prompt_for_password,
override_defaults={
'interface': None,
'auth_type': self._auth_type,