Merge "Handle object type when registering runtime options in autohelp"

This commit is contained in:
Jenkins 2017-03-14 02:53:37 +00:00 committed by Gerrit Code Review
commit 8c6a65a31a
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ def _register_runtime_opts(module, abs_path, verbose):
{'obj': opts_var, 'module': module})
break
if register:
if register and isinstance(obj, list):
for opt in obj:
if not isinstance(opt, cfg.Opt):
continue