Update content of ResourceNotFound/ResourceAlreadyExists message
According to Redfish Base Message Registry definition [1], the first
argument of ResourceNotFound and ResourceAlreadyExists is the schema
name of the resource. This patch changes the first argument to non-
versioned schema name treewide.
Tested:
Verified the error message matches the definition, and Redfish Service
Validator passed.
[1] https://redfish.dmtf.org/registries/Base.1.13.0.json
Change-Id: Ib5cd853578ef0bffda1184d10827241e94faaf68
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
diff --git a/redfish-core/lib/message_registries.hpp b/redfish-core/lib/message_registries.hpp
index 189cd2e..09d32b7 100644
--- a/redfish-core/lib/message_registries.hpp
+++ b/redfish-core/lib/message_registries.hpp
@@ -99,9 +99,8 @@
}
else
{
- messages::resourceNotFound(
- asyncResp->res, "#MessageRegistryFile.v1_1_0.MessageRegistryFile",
- registry);
+ messages::resourceNotFound(asyncResp->res, "MessageRegistryFile",
+ registry);
return;
}
@@ -185,9 +184,8 @@
}
else
{
- messages::resourceNotFound(
- asyncResp->res, "#MessageRegistryFile.v1_1_0.MessageRegistryFile",
- registry);
+ messages::resourceNotFound(asyncResp->res, "MessageRegistryFile",
+ registry);
return;
}