Fix error message not interpolated

Change-Id: I19bd8b83b2537ac682be86b9bb71509fb40bdcd7
This commit is contained in:
Kaifeng Wang 2024-08-08 21:47:32 +08:00
parent 3f34f04bf0
commit 23b61e2ba8

View File

@ -165,7 +165,7 @@ class RedfishInspect(base.InspectInterface):
missing_keys = valid_keys - set(inspected_properties)
if missing_keys:
error = (_('Failed to discover the following properties: '
'%(missing_keys)s on node %(node)s'),
'%(missing_keys)s on node %(node)s') %
{'missing_keys': ', '.join(missing_keys),
'node': task.node.uuid})
raise exception.HardwareInspectionFailure(error=error)