Boolean error: fix deprecation date sanity check. (#70047)
This commit is contained in:
parent
5b3719805e
commit
0617514176
1 changed files with 1 additions and 1 deletions
|
@ -1136,7 +1136,7 @@ class ModuleValidator(Validator):
|
||||||
# to make comparison possible and to avoid confusing the user.
|
# to make comparison possible and to avoid confusing the user.
|
||||||
documentation_date = doc_deprecation.get('removed_at_date')
|
documentation_date = doc_deprecation.get('removed_at_date')
|
||||||
documentation_version = doc_deprecation.get('removed_in')
|
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(
|
self.reporter.error(
|
||||||
path=self.object_path,
|
path=self.object_path,
|
||||||
code='deprecation-mismatch',
|
code='deprecation-mismatch',
|
||||||
|
|
Loading…
Reference in a new issue