Support option renaming in validate-modules.
This commit is contained in:
parent
293e624235
commit
673bfc06b9
1 changed files with 3 additions and 2 deletions
|
@ -798,8 +798,9 @@ 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():
|
||||||
new = not bool(existing_options.get(option))
|
names = [option] + details.get('aliases', [])
|
||||||
if not new:
|
|
||||||
|
if any(name in existing_options for name in names):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue