summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-08-29 00:02:31 +0000
committerGerrit Code Review <review@openstack.org>2019-08-29 00:02:31 +0000
commiteed615e7d0fb0935ddde0565bf93174549f2456a (patch)
treefd7976111e68e341b3425032a432a91cdf1768d4 /openstackclient/shell.py
parentfd63a909a8247775d474521007546785566af13a (diff)
parent6fcc2608b17d84cf3699bb4a5bae692404393ca1 (diff)
downloadpython-openstackclient-eed615e7d0fb0935ddde0565bf93174549f2456a.tar.gz
Merge "Remove token_endpoint auth type"
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py
index 86aa032b..4489219f 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'