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.
Change-Id: I297566aa3ea602f60b7caaff09168dd1c8611c17
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/ibm_vpd_utils.cpp b/ibm_vpd_utils.cpp
index 29817b2..9247870 100644
--- a/ibm_vpd_utils.cpp
+++ b/ibm_vpd_utils.cpp
@@ -1007,7 +1007,7 @@
// TODO: How do we handle multiple chassis?
std::string powerState{};
auto bus = sdbusplus::bus::new_default();
- auto properties = bus.new_method_call("xyz.openbmc_project.State.Chassis",
+ auto properties = bus.new_method_call("xyz.openbmc_project.State.Chassis0",
"/xyz/openbmc_project/state/chassis0",
"org.freedesktop.DBus.Properties",
"Get");