1
0
Fork 0
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:
Matt Martz 2016-05-31 10:40:11 -05:00 committed by John Barker
parent d777e217e7
commit 43c028d52d

View file

@ -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: