Merge "Allow plugins to return config options as list of tuples"

This commit is contained in:
Zuul 2019-09-10 11:59:56 +00:00 committed by Gerrit Code Review
commit 6dea050274
1 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,11 @@ def register_options_from_path(path):
return return
options = list_func() options = list_func()
register_opts(options.items())
if isinstance(options, dict):
options = options.items()
register_opts(options)
_registered_paths.append(path) _registered_paths.append(path)