Merge "Remove deprecation warning by setting schema" into stable/2023.2

This commit is contained in:
Zuul 2024-04-22 05:30:01 +00:00 committed by Gerrit Code Review
commit 91a3f439a0
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.