mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
options can be None, don't iterate None
This commit is contained in:
parent
d777e217e7
commit
43c028d52d
1 changed files with 2 additions and 1 deletions
|
@ -359,7 +359,8 @@ class ModuleValidator(Validator):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
errors.extend(e.errors)
|
errors.extend(e.errors)
|
||||||
|
|
||||||
for key, option in doc.get('options', {}).iteritems():
|
options = doc.get('options', {})
|
||||||
|
for key, option in (options or {}).iteritems():
|
||||||
try:
|
try:
|
||||||
option_schema(option)
|
option_schema(option)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue