summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2015-02-26 13:14:17 -0500
committerJulia Kreger <juliaashleykreger@gmail.com>2015-02-27 08:21:09 -0500
commit9752febeb6abd7d975af53e95ef1aed7c7d4cb56 (patch)
tree76846f108b5cfbc7a59147fdb1184bc1185d56ad
parent7385528671ea61617d7027fc33897ea850e7364c (diff)
downloados-client-config-9752febeb6abd7d975af53e95ef1aed7c7d4cb56.tar.gz
Allow keystone validation bypass for noauth usage
To enable the eventual use of the shade library for communication with ironic in situations where authentication is set to noauth, it is necessary to not attempt to validate a user's credentials. Added a check to disable authentication validation when the auth_plugin is set to '' or 'None' or None. Change-Id: I3807b4724ce5e204b5857c1dbf5325f0e3f4a78d
-rw-r--r--os_client_config/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index f8adc04..771a1c9 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -294,6 +294,10 @@ class OpenStackConfig(object):
if type(config[key]) is not bool:
config[key] = get_boolean(config[key])
+ if 'auth_plugin' in config:
+ if config['auth_plugin'] in ('', 'None', None):
+ validate = False
+
if validate and ksc_auth:
config = self._validate_auth(config)