diff options
-rw-r--r-- | os_client_config/config.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py index c6ddf52..7c65b53 100644 --- a/os_client_config/config.py +++ b/os_client_config/config.py @@ -383,12 +383,8 @@ class OpenStackConfig(object): def _validate_auth(self, config): # May throw a keystoneclient.exceptions.NoMatchingPlugin - if config['auth_type'] == 'token_endpoint': - auth_plugin = ksc_auth.token_endpoint.Token - else: - auth_plugin = ksc_auth.get_plugin_class(config['auth_type']) - - plugin_options = auth_plugin.get_options() + plugin_options = ksc_auth.get_plugin_class( + config['auth_type']).get_options() for p_opt in plugin_options: # if it's in config.auth, win, kill it from config dict |