Boolean error: fix deprecation date sanity check. (#70047)

This commit is contained in:
Felix Fontein 2020-06-13 15:05:40 +02:00 committed by GitHub
parent 5b3719805e
commit 0617514176
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1136,7 +1136,7 @@ class ModuleValidator(Validator):
# to make comparison possible and to avoid confusing the user.
documentation_date = doc_deprecation.get('removed_at_date')
documentation_version = doc_deprecation.get('removed_in')
if compare_dates(routing_date, documentation_date):
if not compare_dates(routing_date, documentation_date):
self.reporter.error(
path=self.object_path,
code='deprecation-mismatch',