From f012c94fa5cacac0b11b6cfe670682523c747495 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 16 Oct 2017 10:40:16 -0700 Subject: [PATCH] Handle bad options syntax in validate-modules. --- test/sanity/validate-modules/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/sanity/validate-modules/main.py b/test/sanity/validate-modules/main.py index b39038b27e..4d2f69696e 100755 --- a/test/sanity/validate-modules/main.py +++ b/test/sanity/validate-modules/main.py @@ -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