mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
If no version_added is found, we should assume the string 0.0 instead of the int 0
This commit is contained in:
parent
8c6c2caf61
commit
99158a6a89
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue