From 3eb117a322aca11f049bb05beea5eb2f6385cb8e Mon Sep 17 00:00:00 2001 From: Vishwanatha Subbanna Date: Wed, 12 Jul 2017 16:13:49 +0530 Subject: Use Host Command Manager in host interface implementation Change-Id: Icefce510a3a0022bf0288fa99518459b732a2e04 Signed-off-by: Vishwanatha Subbanna --- softoff/softoff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'softoff') 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 @@ using namespace sdbusplus::xyz::openbmc_project::Control::server; 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()); -- cgit v1.2.1