When checking option version_added, if unexpected exception, continue
This commit is contained in:
parent
d6ecdfd00a
commit
aeb064520e
1 changed files with 5 additions and 0 deletions
|
@ -504,6 +504,11 @@ class ModuleValidator(Validator):
|
||||||
'is not a valid version number: %r' %
|
'is not a valid version number: %r' %
|
||||||
(option, version_added))
|
(option, version_added))
|
||||||
continue
|
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
|
if (strict_ansible_version != mod_version_added and
|
||||||
(version_added < strict_ansible_version or
|
(version_added < strict_ansible_version or
|
||||||
|
|
Loading…
Reference in a new issue