From 9465f9e5a431e596ae4d1921f01154695e7d8255 Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Sun, 26 Apr 2015 10:32:15 -0500 Subject: [PATCH] Use [] where a value is required The use of .get() implies that having no value, or None is ok, but in the case that's fixed here, a value of None would result in an error, so [] is correct to use here. Change-Id: I47113121c10c2d0682daf40eb616b379e2d212e8 --- keystone/auth/controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystone/auth/controllers.py b/keystone/auth/controllers.py index 87d1c0c135..6d910a6054 100644 --- a/keystone/auth/controllers.py +++ b/keystone/auth/controllers.py @@ -65,7 +65,7 @@ def load_auth_methods(): plugin_name = driver.method else: plugin_name = plugin - plugin_class = CONF.auth.get(plugin) + plugin_class = CONF.auth[plugin] driver = importutils.import_object(plugin_class) if plugin_name in AUTH_METHODS: raise ValueError(_('Auth plugin %(plugin)s is requesting '