We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 684be67 + 30d5f14 commit 782e4d0Copy full SHA for 782e4d0
1 file changed
openstackclient/common/clientmanager.py
@@ -83,10 +83,12 @@ def setup_auth(self):
83
self._cli_options._openstack_config._pw_callback = \
84
shell.prompt_for_password
85
try:
86
- self._cli_options._auth = \
87
- self._cli_options._openstack_config.load_auth_plugin(
88
- self._cli_options.config,
89
- )
+ # We might already get auth from SDK caching
+ if not self._cli_options._auth:
+ self._cli_options._auth = \
+ self._cli_options._openstack_config.load_auth_plugin(
90
+ self._cli_options.config,
91
+ )
92
except TypeError as e:
93
self._fallback_load_auth_plugin(e)
94
0 commit comments