Use the new RestartCause interface
Tested:
Combined with the RestartCause changes ran 'ipmitool raw 0 7'
and 'ipmitool chassis restart_cause' commands and confirmed that
they correctly return the current RestartCause.
Change-Id: I8361040b12db6567ea48157b9f2e048054e8df1d
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/src/chassiscommands.cpp b/src/chassiscommands.cpp
index ca12904..f5cc0a3 100644
--- a/src/chassiscommands.cpp
+++ b/src/chassiscommands.cpp
@@ -371,7 +371,7 @@
constexpr const char* restartCausePath =
"/xyz/openbmc_project/control/host0/restart_cause";
constexpr const char* restartCauseIntf =
- "xyz.openbmc_project.Common.RestartCause";
+ "xyz.openbmc_project.Control.Host.RestartCause";
std::shared_ptr<sdbusplus::asio::connection> busp = getSdBus();
try