summaryrefslogtreecommitdiff
path: root/redfish-core/lib/event_service.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/event_service.hpp')
-rw-r--r--redfish-core/lib/event_service.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp
index c1ad0d8022..ee8fc5da1d 100644
--- a/redfish-core/lib/event_service.hpp
+++ b/redfish-core/lib/event_service.hpp
@@ -98,7 +98,7 @@ inline void requestRoutesEventService(App& app)
asyncResp->res.jsonValue["SSEFilterPropertiesSupported"] =
std::move(supportedSSEFilters);
- });
+ });
BMCWEB_ROUTE(app, "/redfish/v1/EventService/")
.privileges(redfish::privileges::patchEventService)
@@ -162,7 +162,7 @@ inline void requestRoutesEventService(App& app)
EventServiceManager::getInstance().setEventServiceConfig(
eventServiceConfig);
- });
+ });
}
inline void requestRoutesSubmitTestEvent(App& app)
@@ -184,7 +184,7 @@ inline void requestRoutesSubmitTestEvent(App& app)
return;
}
asyncResp->res.result(boost::beast::http::status::no_content);
- });
+ });
}
inline void doSubscriptionCollection(
@@ -255,11 +255,11 @@ inline void requestRoutesEventDestinationCollection(App& app)
[asyncResp](const boost::system::error_code& ec,
const dbus::utility::ManagedObjectType& resp) {
doSubscriptionCollection(ec, asyncResp, resp);
- },
+ },
"xyz.openbmc_project.Network.SNMP",
"/xyz/openbmc_project/network/snmp/manager",
"org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
- });
+ });
BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/")
.privileges(redfish::privileges::postEventDestinationCollection)
@@ -559,7 +559,7 @@ inline void requestRoutesEventDestinationCollection(App& app)
[&id](const redfish::registries::MessageEntry&
messageEntry) {
return id == messageEntry.first;
- }))
+ }))
{
validId = true;
break;
@@ -621,7 +621,7 @@ inline void requestRoutesEventDestinationCollection(App& app)
messages::created(asyncResp->res);
asyncResp->res.addHeader(
"Location", "/redfish/v1/EventService/Subscriptions/" + id);
- });
+ });
}
inline void requestRoutesEventDestination(App& app)
@@ -680,7 +680,7 @@ inline void requestRoutesEventDestination(App& app)
mrdJsonArray.emplace_back(std::move(mdr));
}
asyncResp->res.jsonValue["MetricReportDefinitions"] = mrdJsonArray;
- });
+ });
BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/<str>/")
// The below privilege is wrong, it should be ConfigureManager OR
// ConfigureSelf
@@ -754,7 +754,7 @@ inline void requestRoutesEventDestination(App& app)
}
EventServiceManager::getInstance().updateSubscriptionData();
- });
+ });
BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/<str>/")
// The below privilege is wrong, it should be ConfigureManager OR
// ConfigureSelf
@@ -783,7 +783,7 @@ inline void requestRoutesEventDestination(App& app)
return;
}
EventServiceManager::getInstance().deleteSubscription(param);
- });
+ });
}
} // namespace redfish