Use Host Command Manager in host interface implementation
Change-Id: Icefce510a3a0022bf0288fa99518459b732a2e04
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/softoff/softoff.cpp b/softoff/softoff.cpp
index 767eb90..4a3166c 100644
--- a/softoff/softoff.cpp
+++ b/softoff/softoff.cpp
@@ -29,8 +29,8 @@
void SoftPowerOff::sendHostShutDownCmd()
{
- std::string ctrlHostPath{CONTROL_HOST_OBJPATH};
- ctrlHostPath += "0";
+ auto ctrlHostPath = std::string{CONTROL_HOST_OBJ_MGR} + '/' +
+ HOST_NAME + '0';
auto host = ::ipmi::getService(this->bus,
CONTROL_HOST_BUSNAME,
ctrlHostPath.c_str());