Skip to content

Commit

Permalink
Handle bad options syntax in validate-modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Oct 16, 2017
1 parent 07f1e75 commit f012c94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/sanity/validate-modules/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,11 @@ def _check_for_new_args(self, doc):
strict_ansible_version = StrictVersion(should_be)

for option, details in options.items():
names = [option] + details.get('aliases', [])
try:
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):
continue
Expand Down

0 comments on commit f012c94

Please sign in to comment.