Don't error on type changes, cast to string and compare (#52505)

This commit is contained in:
Matt Martz 2019-02-18 13:25:58 -06:00 committed by GitHub
parent 6e739b12a6
commit 60255efc32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1404,7 +1404,7 @@ class ModuleValidator(Validator):
if existing_version:
break
current_version = details.get('version_added')
if current_version != existing_version:
if str(current_version) != str(existing_version):
self.reporter.error(
path=self.object_path,
code=309,