fix: skip ansible-later min version check for default placeholder 0.0.0

This commit is contained in:
Robert Kaussow 2021-01-19 22:31:53 +01:00
parent 9a46ac6c39
commit d7d50ead10
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -46,6 +46,7 @@ def get_standards(filepath):
) )
if getattr(standards, "ansible_later_min_version", None) and \ if getattr(standards, "ansible_later_min_version", None) and \
utils.get_property("__version__") != "0.0.0" and \
LooseVersion(standards.ansible_later_min_version) > LooseVersion( LooseVersion(standards.ansible_later_min_version) > LooseVersion(
utils.get_property("__version__")): utils.get_property("__version__")):
utils.sysexit_with_message( utils.sysexit_with_message(