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
10d10fd4a7
commit
e62fd36381
@ -29,7 +29,7 @@ from ironic.conf import CONF
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
_UPDATE_FIRMWARE_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/schema#",
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "update_firmware clean step schema",
|
||||
"type": "array",
|
||||
# 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