treewide: change EM's ObjectManager path
EntityManager moves its ObjectManager in commit [1], this patch is to
change accordingly. Please see [1] for why we made that change.
[1] https://gerrit.openbmc.org/c/openbmc/entity-manager/+/57279
Tested: code compiles. I don't have a system with this repo enabled.
But code inspection can show that only ObjectManager path changed.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I166cc919bf355d5ee3224553129854a28fdf03b7
diff --git a/src/storagecommands.cpp b/src/storagecommands.cpp
index e743a2d..4a9038d 100644
--- a/src/storagecommands.cpp
+++ b/src/storagecommands.cpp
@@ -102,8 +102,6 @@
constexpr static const char* fruDeviceServiceName =
"xyz.openbmc_project.FruDevice";
-constexpr static const char* entityManagerServiceName =
- "xyz.openbmc_project.EntityManager";
constexpr static const size_t writeTimeoutSeconds = 10;
constexpr static const char* chassisTypeRackMount = "23";
@@ -684,8 +682,9 @@
// todo: this should really use caching, this is a very inefficient lookup
boost::system::error_code ec;
ManagedObjectType entities = ctx->bus->yield_method_call<ManagedObjectType>(
- ctx->yield, ec, entityManagerServiceName, "/",
- "org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
+ ctx->yield, ec, "xyz.openbmc_project.EntityManager",
+ "/xyz/openbmc_project/inventory", "org.freedesktop.DBus.ObjectManager",
+ "GetManagedObjects");
if (ec)
{