Merge "Handle object type when registering runtime options in autohelp"
This commit is contained in:
commit
8c6a65a31a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue