From aeb064520eddd0b663d38368d19f626f6ee3dd14 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Sun, 15 May 2016 18:03:06 -0500 Subject: [PATCH] When checking option version_added, if unexpected exception, continue --- ansible_testing/modules.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 7f222e20ec3..38b4167bff6 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -504,6 +504,11 @@ class ModuleValidator(Validator): 'is not a valid version number: %r' % (option, version_added)) continue + except: + # If there is any other exception it should have been caught + # in schema validation, so we won't duplicate errors by + # listing it again + continue if (strict_ansible_version != mod_version_added and (version_added < strict_ansible_version or