From e77b8345d88c90288e4846c5da200187bed59d00 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Wed, 12 Sep 2018 10:41:53 -0500 Subject: Remove trailing slash on path in GetObject call The upcoming C++ mapper implementation needs it this way. Tested: With the new mapper and this fix, the call works. Change-Id: I9b65cb8e12ff0369517ab82dca0be0fae5ae281c Signed-off-by: Matt Spinler --- fault-monitor/fru-fault-monitor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fault-monitor/fru-fault-monitor.cpp b/fault-monitor/fru-fault-monitor.cpp index 158389f..8f5f8fa 100644 --- a/fault-monitor/fru-fault-monitor.cpp +++ b/fault-monitor/fru-fault-monitor.cpp @@ -103,7 +103,9 @@ void action(sdbusplus::bus::bus& bus, std::string service; try { - service = getService(bus, LED_GROUPS); + std::string groups{LED_GROUPS}; + groups.pop_back(); + service = getService(bus, groups); } catch (MethodErr& e) { -- cgit v1.2.1