Handle bad options syntax in validate-modules.

pull/31844/head
Matt Clay 7 years ago
parent 07f1e7540b
commit f012c94fa5

@ -987,7 +987,11 @@ class ModuleValidator(Validator):
strict_ansible_version = StrictVersion(should_be) strict_ansible_version = StrictVersion(should_be)
for option, details in options.items(): for option, details in options.items():
try:
names = [option] + details.get('aliases', []) names = [option] + details.get('aliases', [])
except AttributeError:
# Reporting of this syntax error will be handled by schema validation.
continue
if any(name in existing_options for name in names): if any(name in existing_options for name in names):
continue continue

Loading…
Cancel
Save