Skip to content

Commit 782e4d0

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add support for token caching"
2 parents 684be67 + 30d5f14 commit 782e4d0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

openstackclient/common/clientmanager.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ def setup_auth(self):
8383
self._cli_options._openstack_config._pw_callback = \
8484
shell.prompt_for_password
8585
try:
86-
self._cli_options._auth = \
87-
self._cli_options._openstack_config.load_auth_plugin(
88-
self._cli_options.config,
89-
)
86+
# We might already get auth from SDK caching
87+
if not self._cli_options._auth:
88+
self._cli_options._auth = \
89+
self._cli_options._openstack_config.load_auth_plugin(
90+
self._cli_options.config,
91+
)
9092
except TypeError as e:
9193
self._fallback_load_auth_plugin(e)
9294

0 commit comments

Comments
 (0)