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

When checking option version_added, if unexpected exception, continue

This commit is contained in:
Matt Martz 2016-05-15 18:03:06 -05:00 committed by John Barker
parent d6ecdfd00a
commit aeb064520e

View file

@ -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