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: Ief436b041d67488a75d049d283174a6ac158db84
diff --git a/phosphor-power-supply/psu_manager.cpp b/phosphor-power-supply/psu_manager.cpp
index 3af7e36..44827ee 100644
--- a/phosphor-power-supply/psu_manager.cpp
+++ b/phosphor-power-supply/psu_manager.cpp
@@ -868,7 +868,7 @@
util::getProperty<PowerState>(
"xyz.openbmc_project.State.Chassis", "CurrentPowerState",
"/xyz/openbmc_project/state/chassis0",
- "xyz.openbmc_project.State.Chassis", bus,
+ "xyz.openbmc_project.State.Chassis0", bus,
currentPowerState);
if (currentPowerState == PowerState::Off)