mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Cast version to string for comparisons
This commit is contained in:
@@ -335,7 +335,7 @@ class ModuleValidator(Validator):
|
||||
return
|
||||
|
||||
try:
|
||||
version_added = StrictVersion(doc.get('version_added', '0.0'))
|
||||
version_added = StrictVersion(str(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