diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2019-08-21 12:20:41 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2019-08-27 11:08:50 -0500 |
| commit | 6fcc2608b17d84cf3699bb4a5bae692404393ca1 (patch) | |
| tree | 89b8d4bcfb2d61cb9523ecddaa1bd110242af2f2 /openstackclient/shell.py | |
| parent | 6c818c492569bc9304c166a79bf812603cbb6358 (diff) | |
| download | python-openstackclient-6fcc2608b17d84cf3699bb4a5bae692404393ca1.tar.gz | |
Remove token_endpoint auth type
The token_endpoint was a compatibility auth type to maintain support
for the --url global option that dated back to the beginning of
OpenStack CLI auth. The common keystoneauth library implements
'admin_token' which provides the same functionality using
--endpoint rather than --url.
Change-Id: I1b9fbb96e447889a41b705324725a2ffc8ecfd9f
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
Diffstat (limited to 'openstackclient/shell.py')
| -rw-r--r-- | openstackclient/shell.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py index 22d8412c..91a15fd4 100644 --- a/openstackclient/shell.py +++ b/openstackclient/shell.py @@ -58,10 +58,10 @@ class OpenStackShell(shell.OpenStackShell): def _final_defaults(self): super(OpenStackShell, self)._final_defaults() - # Set the default plugin to token_endpoint if url and token are given - if (self.options.url and self.options.token): - # Use service token authentication - self._auth_type = 'token_endpoint' + # Set the default plugin to admin_token if endpoint and token are given + if (self.options.endpoint and self.options.token): + # Use token authentication + self._auth_type = 'admin_token' else: self._auth_type = 'password' |
