← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2089051] Re: jsonschema: FormatChecker.cls_checks was deprecated

 

Reviewed:  https://review.opendev.org/c/openstack/nova/+/935733
Committed: https://opendev.org/openstack/nova/commit/ca58f33da2ea537646560152ed598c452e607e86
Submitter: "Zuul (22348)"
Branch:    master

commit ca58f33da2ea537646560152ed598c452e607e86
Author: Takashi Kajinami <kajinamit@xxxxxxxxxxxxxxx>
Date:   Wed Nov 20 10:37:23 2024 +0900

    Replace deprecated FormatChecker.cls_checks
    
    The method was deprecated in jsonschema 4.14.0[1] and now triggers
    the following warning.
    
    DeprecationWarning: FormatChecker.cls_checks is deprecated. Call
    FormatChecker.checks on a specific FormatChecker instance instead.
    
    Also drop redundant override of FormatChecker. The overridden check
    method is identical with the same method in the parent class.
    
    [1] https://github.com/python-jsonschema/jsonschema/commit/cd8f0592b93947a9deb8b3e6502cc5a69cb6d722
    
    Closes-Bug: #2089051
    Change-Id: I965e0e9a1924988d81a23faf630ac4448ea14af9


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2089051

Title:
  jsonschema: FormatChecker.cls_checks was deprecated

Status in Cinder:
  In Progress
Status in OpenStack Identity (keystone):
  In Progress
Status in OpenStack Shared File Systems Service (Manila):
  In Progress
Status in OpenStack Compute (nova):
  Fix Released
Status in placement:
  In Progress
Status in tacker:
  In Progress
Status in tempest:
  In Progress

Bug description:
  The method was deprecated in jsonschema 4.14.0[1] and now triggers the
  following warning.

  ---
  DeprecationWarning: FormatChecker.cls_checks is deprecated. Call FormatChecker.checks on a specific FormatChecker instance instead.
  ---

  We should update the usage accordingly.

  [1] https://github.com/python-
  jsonschema/jsonschema/commit/cd8f0592b93947a9deb8b3e6502cc5a69cb6d722

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/2089051/+subscriptions