Handle object type when registering runtime options in autohelp

Change-Id: I9800c7ae467a807c0e6b6bca6784aace2140c75b
Closes-bug: #1672377
This commit is contained in:
Christian Berendt 2017-03-13 14:27:43 +01:00
parent 700b228d16
commit 9a7a07dde1
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