summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-09-22 11:29:46 -0500
committerMonty Taylor <mordred@inaugust.com>2015-09-22 16:34:57 +0000
commitb399898b5785dfee18cdbe18687cb7a15a2f87c4 (patch)
tree18e2fc8cc2814fb8823f65cdbaec656cdc33466d
parent70d7da8de562a702600498223a180005ce62d80a (diff)
downloados-client-config-stable/liberty.tar.gz
Fix a little error with the None auth typeliberty-eolstable/liberty
Ironic has a mode where it does not use auth, but we still funnel that through the ksa admin_token type for consistency of code. The hack we had to do that went too far and caused validate_auth to strip the fake token we were adding. Change-Id: Id5275ac7db1a6052db02c2286cbf88862cb1ff70
-rw-r--r--os_client_config/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index 1b6193e..fcca30a 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -419,7 +419,9 @@ class OpenStackConfig(object):
# _other_ things (SSL arg handling, timeout) all work consistently
if config['auth_type'] in (None, "None", ''):
config['auth_type'] = 'admin_token'
- config['auth']['token'] = None
+ # Set to notused rather than None because validate_auth will
+ # strip the value if it's actually python None
+ config['auth']['token'] = 'notused'
return loading.get_plugin_loader(config['auth_type'])
def _validate_auth_ksc(self, config):