|
26 | 26 | # before auth plugins are loaded |
27 | 27 | class OSC_Config(client_config.OSC_Config): |
28 | 28 |
|
29 | | - # TODO(dtroyer): Once os-client-config with pw_func argument is in |
30 | | - # global-requirements we can remove __init()__ |
31 | | - def __init__( |
32 | | - self, |
33 | | - config_files=None, |
34 | | - vendor_files=None, |
35 | | - override_defaults=None, |
36 | | - force_ipv4=None, |
37 | | - envvar_prefix=None, |
38 | | - secure_files=None, |
39 | | - pw_func=None, |
40 | | - ): |
41 | | - ret = super(OSC_Config, self).__init__( |
42 | | - config_files=config_files, |
43 | | - vendor_files=vendor_files, |
44 | | - override_defaults=override_defaults, |
45 | | - force_ipv4=force_ipv4, |
46 | | - envvar_prefix=envvar_prefix, |
47 | | - secure_files=secure_files, |
48 | | - ) |
49 | | - |
50 | | - # NOTE(dtroyer): This will be pushed down into os-client-config |
51 | | - # The default is there is no callback, the calling |
52 | | - # application must specify what to use, typically |
53 | | - # it will be osc_lib.shell.prompt_for_password() |
54 | | - if '_pw_callback' not in vars(self): |
55 | | - # Set the default if it doesn't already exist |
56 | | - self._pw_callback = None |
57 | | - if pw_func is not None: |
58 | | - # Set the passed in value |
59 | | - self._pw_callback = pw_func |
60 | | - |
61 | | - return ret |
62 | | - |
63 | 29 | # TODO(dtroyer): Remove _auth_default_domain when the v3otp fix is |
64 | 30 | # backported to osc-lib, should be in release 1.3.0 |
65 | 31 | def _auth_default_domain(self, config): |
|
0 commit comments