mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Cast version to string for comparisons
This commit is contained in:
parent
8daaa75027
commit
ccd49201b1
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ class ModuleValidator(Validator):
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
version_added = StrictVersion(doc.get('version_added', '0.0'))
|
version_added = StrictVersion(str(doc.get('version_added', '0.0')))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
self.errors.append('version_added is not a valid version '
|
self.errors.append('version_added is not a valid version '
|
||||||
'number: %s' % version_added)
|
'number: %s' % version_added)
|
||||||
|
|
Loading…
Reference in a new issue