mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Handle bad options syntax in validate-modules.
This commit is contained in:
@@ -987,7 +987,11 @@ class ModuleValidator(Validator):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user