Utils: change OS state busname and objpath
Change the busname and object path of OS state interface.
This commit relies on the patch below:
[1] https://gerrit.openbmc.org/c/openbmc/x86-power-control/+/69589
Change-Id: If2180db4a26a548934ef62fb4a16a6f2ed6f41eb
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
diff --git a/src/Utils.hpp b/src/Utils.hpp
index f3e0753..d76f954 100644
--- a/src/Utils.hpp
+++ b/src/Utils.hpp
@@ -115,7 +115,7 @@
namespace power
{
-const static constexpr char* busname = "xyz.openbmc_project.State.Host";
+const static constexpr char* busname = "xyz.openbmc_project.State.Host0";
const static constexpr char* interface = "xyz.openbmc_project.State.Host";
const static constexpr char* path = "/xyz/openbmc_project/state/host0";
const static constexpr char* property = "CurrentHostState";
@@ -132,11 +132,10 @@
namespace post
{
-const static constexpr char* busname =
- "xyz.openbmc_project.State.OperatingSystem";
+const static constexpr char* busname = "xyz.openbmc_project.State.Host0";
const static constexpr char* interface =
"xyz.openbmc_project.State.OperatingSystem.Status";
-const static constexpr char* path = "/xyz/openbmc_project/state/os";
+const static constexpr char* path = "/xyz/openbmc_project/state/host0";
const static constexpr char* property = "OperatingSystemState";
} // namespace post