Correct encoded 'obmc-console' path name
In the current version of the sdbusplus library if the D-Bus path
needs encoding, the first character of the path also gets encoded.
Change-Id: I9b615440f6c9816ab531aef942b152eadde4c9af
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/sol/sol_manager.cpp b/sol/sol_manager.cpp
index a8a9faa..8fabeeb 100644
--- a/sol/sol_manager.cpp
+++ b/sol/sol_manager.cpp
@@ -238,7 +238,7 @@
{
auto servicePath = ipmi::getDbusObject(
bus, "xyz.openbmc_project.Control.Service.Attributes",
- "/xyz/openbmc_project/control/service", "obmc_2dconsole");
+ "/xyz/openbmc_project/control/service", "_6fbmc_2dconsole");
if (!std::empty(servicePath.first))
{