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>
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 @@
std::string service;
try
{
- service = getService(bus, LED_GROUPS);
+ std::string groups{LED_GROUPS};
+ groups.pop_back();
+ service = getService(bus, groups);
}
catch (MethodErr& e)
{