summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2018-09-12 10:41:53 -0500
committerMatt Spinler <spinler@us.ibm.com>2018-09-12 10:41:53 -0500
commite77b8345d88c90288e4846c5da200187bed59d00 (patch)
tree359f54430baf55223cc7343e14deb821dc4d387e
parent08d613e7d549d647105bb7ff5a6d3716708d2332 (diff)
downloadphosphor-led-manager-e77b8345d88c90288e4846c5da200187bed59d00.zip
phosphor-led-manager-e77b8345d88c90288e4846c5da200187bed59d00.tar.gz
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 <spinler@us.ibm.com>
-rw-r--r--fault-monitor/fru-fault-monitor.cpp4
1 files changed, 3 insertions, 1 deletions
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)
{
OpenPOWER on IntegriCloud