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:
parent
7b6e58a5ac
commit
438fd6220a
@ -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
|
||||||
|
8
releasenotes/notes/2061160-5e080a17ae31fb53.yaml
Normal file
8
releasenotes/notes/2061160-5e080a17ae31fb53.yaml
Normal 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.
|
Loading…
Reference in New Issue
Block a user