summaryrefslogtreecommitdiffstats
path: root/softoff
diff options
context:
space:
mode:
Diffstat (limited to 'softoff')
-rw-r--r--softoff/softoff.cpp4
1 files changed, 2 insertions, 2 deletions
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());
OpenPOWER on IntegriCloud