Handle object type when registering runtime options in autohelp
Change-Id: I9800c7ae467a807c0e6b6bca6784aace2140c75b Closes-bug: #1672377
This commit is contained in:
parent
700b228d16
commit
9a7a07dde1
|
@ -194,7 +194,7 @@ def _register_runtime_opts(module, abs_path, verbose):
|
||||||
{'obj': opts_var, 'module': module})
|
{'obj': opts_var, 'module': module})
|
||||||
break
|
break
|
||||||
|
|
||||||
if register:
|
if register and isinstance(obj, list):
|
||||||
for opt in obj:
|
for opt in obj:
|
||||||
if not isinstance(opt, cfg.Opt):
|
if not isinstance(opt, cfg.Opt):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue