Remove deprecation warning by setting schema

Closes-Bug: #2061160

Change-Id: Ie5af73dd1b8af29734d1cf34b070e2a2bbc09949
Signed-off-by: Alexon Oliveira <alolivei@redhat.com>
(cherry picked from commit 668dd24108)
This commit is contained in:
Alexon Oliveira 2024-04-15 13:31:08 -03:00 committed by Julia Kreger
parent 7b6e58a5ac
commit 438fd6220a
2 changed files with 9 additions and 1 deletions

View File

@ -30,7 +30,7 @@ from ironic.drivers.modules.redfish import utils as redfish_utils
LOG = log.getLogger(__name__) LOG = log.getLogger(__name__)
_UPDATE_FIRMWARE_SCHEMA = { _UPDATE_FIRMWARE_SCHEMA = {
"$schema": "http://json-schema.org/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"title": "update_firmware clean step schema", "title": "update_firmware clean step schema",
"type": "array", "type": "array",
# list of firmware update images # list of firmware update images

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Fixes an issue with units tests that show this DeprecationWarning:
The metaschema specified by $schema was not found. Using the latest
draft to validate, but this will raise an error in the future.
cls = validator_for(schema)
Removed the warning for deprecated schema by using a new template.