1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Support option renaming in validate-modules.

This commit is contained in:
Matt Clay 2017-03-03 16:08:36 -08:00
parent 293e624235
commit 673bfc06b9

View file

@ -798,8 +798,9 @@ class ModuleValidator(Validator):
strict_ansible_version = StrictVersion(should_be)
for option, details in options.items():
new = not bool(existing_options.get(option))
if not new:
names = [option] + details.get('aliases', [])
if any(name in existing_options for name in names):
continue
try: