State.Chassis: update service name
Both phosphor-state-manager and x86-power-control have code that exposes
both the Chassis and Chassis0 bus names as a backwards compatibility
when multi-chassis support was added. Switch to the numbered bus name,
which is expected to be the non-deprecated one.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I27303e285de0279a7733613de4df7dafb136aa71
diff --git a/util.cpp b/util.cpp
index e03f965..e106d26 100644
--- a/util.cpp
+++ b/util.cpp
@@ -98,7 +98,7 @@
{
auto bus = sdbusplus::bus::new_default();
auto properties =
- bus.new_method_call("xyz.openbmc_project.State.Chassis",
+ bus.new_method_call("xyz.openbmc_project.State.Chassis0",
"/xyz/openbmc_project/state/chassis0",
"org.freedesktop.DBus.Properties", "Get");
properties.append("xyz.openbmc_project.State.Chassis");