From 673bfc06b9a69d5cca343a12a4135f40dd0d7877 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 3 Mar 2017 16:08:36 -0800 Subject: [PATCH] Support option renaming in validate-modules. --- test/sanity/validate-modules/validate-modules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/sanity/validate-modules/validate-modules b/test/sanity/validate-modules/validate-modules index ac7c1779e16..11dfc2ef9e4 100755 --- a/test/sanity/validate-modules/validate-modules +++ b/test/sanity/validate-modules/validate-modules @@ -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: