Account for argument spec of None in validate modules sanity test

This commit is contained in:
Sam Doran 2020-01-09 17:17:35 -05:00 committed by Matt Clay
parent 3ca4580cb4
commit 92677d43b6

View file

@ -1177,6 +1177,8 @@ class ModuleValidator(Validator):
args_from_argspec = set()
deprecated_args_from_argspec = set()
doc_options = docs.get('options', {})
if doc_options is None:
doc_options = {}
for arg, data in spec.items():
if not isinstance(data, dict):
msg = "Argument '%s' in argument_spec" % arg