Fix metadata comparison (#49133)

This commit is contained in:
Matt Martz 2018-11-26 10:45:48 -06:00 committed by GitHub
parent 93c5781f61
commit 46b465283c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1347,6 +1347,8 @@ class ModuleValidator(Validator):
mod_version_added = StrictVersion('0.0') mod_version_added = StrictVersion('0.0')
if self.base_branch and 'stable-' in self.base_branch: if self.base_branch and 'stable-' in self.base_branch:
metadata.pop('metadata_version', None)
metadata.pop('version', None)
if metadata != existing_metadata: if metadata != existing_metadata:
self.reporter.error( self.reporter.error(
path=self.object_path, path=self.object_path,