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/log_services.hpp b/redfish-core/lib/log_services.hpp
index c3b659e..0d6be71 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -572,8 +572,7 @@
{
// Dump status is not Complete
// return not found until status is changed to Completed
- messages::resourceNotFound(asyncResp->res, dumpType + " dump",
- entryID);
+ messages::resourceNotFound(asyncResp->res, "LogEntry", entryID);
return;
}
@@ -1490,8 +1489,7 @@
const dbus::utility::DBusPropertiesMap& resp) {
if (ec.value() == EBADR)
{
- messages::resourceNotFound(asyncResp->res, "EventLogEntry",
- entryID);
+ messages::resourceNotFound(asyncResp->res, "LogEntry", entryID);
return;
}
if (ec)