From 9752febeb6abd7d975af53e95ef1aed7c7d4cb56 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Thu, 26 Feb 2015 13:14:17 -0500 Subject: [PATCH] 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 --- os_client_config/config.py | 4 ++++ 1 file changed, 4 insertions(+) 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)