Merge "nova conf single point of entry: fix error message"

This commit is contained in:
Jenkins
2016-01-22 22:36:41 +00:00
committed by Gerrit Code Review

View File

@@ -64,7 +64,7 @@ def _import_modules(module_names):
if not hasattr(mod, LIST_OPTS_FUNC_NAME):
msg = "The module 'nova.conf.%s' should have a '%s' "\
"function which returns the config options." % \
(LIST_OPTS_FUNC_NAME, modname)
(modname, LIST_OPTS_FUNC_NAME)
raise Exception(msg)
else:
imported_modules.append(mod)