summaryrefslogtreecommitdiff
path: root/redfish-core/lib/task.hpp
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@intel.com>2022-08-05 11:21:51 +0300
committerEd Tanous <ed@tanous.net>2022-09-06 17:47:10 +0300
commitd8a5d5d8e07f6dec97ed0cbc84052656165f6172 (patch)
tree39e7630e6017f77dbaca8e7ef8a3b9d078abc2be /redfish-core/lib/task.hpp
parent3e7ab70817a6e49684c7c01ec0f2d67630f36559 (diff)
downloadbmcweb-d8a5d5d8e07f6dec97ed0cbc84052656165f6172.tar.xz
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>
Diffstat (limited to 'redfish-core/lib/task.hpp')
-rw-r--r--redfish-core/lib/task.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/task.hpp b/redfish-core/lib/task.hpp
index 08573d5d0e..b40d522d46 100644
--- a/redfish-core/lib/task.hpp
+++ b/redfish-core/lib/task.hpp
@@ -342,14 +342,14 @@ inline void requestRoutesTaskMonitor(App& app)
if (find == task::tasks.end())
{
- messages::resourceNotFound(asyncResp->res, "Monitor", strParam);
+ messages::resourceNotFound(asyncResp->res, "Task", strParam);
return;
}
std::shared_ptr<task::TaskData>& ptr = *find;
// monitor expires after 204
if (ptr->gave204)
{
- messages::resourceNotFound(asyncResp->res, "Monitor", strParam);
+ messages::resourceNotFound(asyncResp->res, "Task", strParam);
return;
}
ptr->populateResp(asyncResp->res);
@@ -383,7 +383,7 @@ inline void requestRoutesTask(App& app)
if (find == task::tasks.end())
{
- messages::resourceNotFound(asyncResp->res, "Tasks", strParam);
+ messages::resourceNotFound(asyncResp->res, "Task", strParam);
return;
}