mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Handle bad options syntax in validate-modules.
This commit is contained in:
parent
07f1e7540b
commit
f012c94fa5
1 changed files with 5 additions and 1 deletions
|
@ -987,7 +987,11 @@ class ModuleValidator(Validator):
|
|||
strict_ansible_version = StrictVersion(should_be)
|
||||
|
||||
for option, details in options.items():
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue