From 43c028d52d2938f1732bd82afab345edc6937830 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 31 May 2016 10:40:11 -0500 Subject: [PATCH] options can be None, don't iterate None --- ansible_testing/modules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 707387f023..9d78644144 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -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: