s3token: When caching is enabled, default auth_type to password
Otherwise, if you just set secret_cache_duration and skip configuring auth_type, you get a not-very-obvious TypeError: sequence item 0: expected string, NoneType found bubbling up from stevedore. Now, you'd get something like MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url Change-Id: Ifddbb9df60207dfaaf0434877f4fe6af5c26bdf8
This commit is contained in:
parent
b0aea93603
commit
ec70cf9605
@ -165,7 +165,7 @@ class S3Token(object):
|
||||
if self._secret_cache_duration > 0:
|
||||
try:
|
||||
auth_plugin = keystone_loading.get_plugin_loader(
|
||||
conf.get('auth_type'))
|
||||
conf.get('auth_type', 'password'))
|
||||
available_auth_options = auth_plugin.get_options()
|
||||
auth_options = {}
|
||||
for option in available_auth_options:
|
||||
|
Loading…
x
Reference in New Issue
Block a user