Rename Journal EventLog handlers
These handlers will serve both the ComputerSystem and the Managers
resource. Give them a common name.
Tested: Inspection only. Code compiles.
Change-Id: Icbcde2d7cf3d8bd55084a7d2bfe7775a220b1bd1
Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
diff --git a/redfish-core/include/utils/eventlog_utils.hpp b/redfish-core/include/utils/eventlog_utils.hpp
index 0f6da3d..38cdfec 100644
--- a/redfish-core/include/utils/eventlog_utils.hpp
+++ b/redfish-core/include/utils/eventlog_utils.hpp
@@ -301,7 +301,7 @@
return LogParseError::success;
}
-inline void handleRequestSystemsLogServiceEventLogLogEntryCollection(
+inline void handleSystemsAndManagersLogServiceEventLogLogEntryCollection(
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
query_param::Query& delegatedQuery, LogServiceParent parent)
{
@@ -394,7 +394,7 @@
}
}
-inline void handleRequestSystemsLogServiceEventLogEntriesGet(
+inline void handleSystemsAndManagersLogServiceEventLogEntriesGet(
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
const std::string& param, LogServiceParent parent)
{
@@ -457,7 +457,7 @@
messages::resourceNotFound(asyncResp->res, "LogEntry", targetID);
}
-inline void handleRequestSystemsLogServicesEventLogActionsClearPost(
+inline void handleSystemsAndManagersLogServicesEventLogActionsClearPost(
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
// Clear the EventLog by deleting the log files
diff --git a/redfish-core/lib/systems_logservices_journal_eventlog.hpp b/redfish-core/lib/systems_logservices_journal_eventlog.hpp
index e070404..ca810bf 100644
--- a/redfish-core/lib/systems_logservices_journal_eventlog.hpp
+++ b/redfish-core/lib/systems_logservices_journal_eventlog.hpp
@@ -57,8 +57,10 @@
return;
}
- eventlog_utils::handleRequestSystemsLogServiceEventLogLogEntryCollection(
- asyncResp, delegatedQuery, eventlog_utils::LogServiceParent::Systems);
+ eventlog_utils::
+ handleSystemsAndManagersLogServiceEventLogLogEntryCollection(
+ asyncResp, delegatedQuery,
+ eventlog_utils::LogServiceParent::Systems);
}
inline void handleSystemsLogServiceEventLogEntriesGet(
@@ -84,7 +86,7 @@
return;
}
- eventlog_utils::handleRequestSystemsLogServiceEventLogEntriesGet(
+ eventlog_utils::handleSystemsAndManagersLogServiceEventLogEntriesGet(
asyncResp, param, eventlog_utils::LogServiceParent::Systems);
}
@@ -103,7 +105,8 @@
systemName);
return;
}
- eventlog_utils::handleRequestSystemsLogServicesEventLogActionsClearPost(
+
+ eventlog_utils::handleSystemsAndManagersLogServicesEventLogActionsClearPost(
asyncResp);
}