mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
If no version_added is found, we should assume the string 0.0 instead of the int 0
This commit is contained in:
@@ -303,7 +303,7 @@ class ModuleValidator(Validator):
|
||||
|
||||
def _check_version_added(self, doc):
|
||||
try:
|
||||
version_added = StrictVersion(doc.get('version_added', 0))
|
||||
version_added = StrictVersion(doc.get('version_added', '0.0'))
|
||||
except ValueError:
|
||||
self.errors.append('version_added is not a valid version '
|
||||
'number: %s' % version_added)
|
||||
|
||||
Reference in New Issue
Block a user