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.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp
index 6088758d2d..9ce2f05a91 100644
--- a/redfish-core/lib/event_service.hpp
+++ b/redfish-core/lib/event_service.hpp
@@ -359,7 +359,7 @@ inline void requestRoutesEventDestinationCollection(App& app)
if (value == nullptr)
{
messages::propertyValueFormatError(
- asyncResp->res, item.value().dump(2, true),
+ asyncResp->res, item.value().dump(2, 1),
"HttpHeaders/" + item.key());
return;
}
@@ -432,7 +432,8 @@ inline void requestRoutesEventDestinationCollection(App& app)
registry.begin(), registry.end(),
[&id](const redfish::message_registries::
MessageEntry& messageEntry) {
- return !id.compare(messageEntry.first);
+ return id.compare(messageEntry.first) ==
+ 0;
}))
{
validId = true;