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

pull/70051/head
Felix Fontein 4 years ago committed by GitHub
parent 5b3719805e
commit 0617514176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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',

Loading…
Cancel
Save