diff --git a/ironic/drivers/modules/redfish/firmware_utils.py b/ironic/drivers/modules/redfish/firmware_utils.py index f4752776fc..a09b339619 100644 --- a/ironic/drivers/modules/redfish/firmware_utils.py +++ b/ironic/drivers/modules/redfish/firmware_utils.py @@ -30,7 +30,7 @@ from ironic.drivers.modules.redfish import utils as redfish_utils 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 diff --git a/releasenotes/notes/2061160-5e080a17ae31fb53.yaml b/releasenotes/notes/2061160-5e080a17ae31fb53.yaml new file mode 100644 index 0000000000..5354aa543b --- /dev/null +++ b/releasenotes/notes/2061160-5e080a17ae31fb53.yaml @@ -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.