mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-10 19:01:14 +00:00
options can be None, don't iterate None
This commit is contained in:
@@ -359,7 +359,8 @@ class ModuleValidator(Validator):
|
||||
except Exception as e:
|
||||
errors.extend(e.errors)
|
||||
|
||||
for key, option in doc.get('options', {}).iteritems():
|
||||
options = doc.get('options', {})
|
||||
for key, option in (options or {}).iteritems():
|
||||
try:
|
||||
option_schema(option)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user