Move the location of sensor object manager
Per phosphor-dbus-interfaces, all sensor implementations should be
implementing an ObjectManager at /xyz/openbmc_project/sensors
This commit updates intel-ipmi-oem to look from the corrrect location.
Tested:
No good way to test, as I don't have an intel-ipmi-oem platform, but a
similar patch made to phosphor-ipmi-host showed the correct results.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I6d059cb1da79a7444da813e329b7ed7ebd8d0350
diff --git a/src/sensorcommands.cpp b/src/sensorcommands.cpp
index d1c4b9d..fcc2593 100644
--- a/src/sensorcommands.cpp
+++ b/src/sensorcommands.cpp
@@ -241,7 +241,7 @@
std::shared_ptr<sdbusplus::asio::connection> dbus = getSdBus();
boost::system::error_code ec;
auto managedObjects = dbus->yield_method_call<ManagedObjectType>(
- yield, ec, sensorConnection.c_str(), "/",
+ yield, ec, sensorConnection.c_str(), "/xyz/openbmc_project/sensors",
"org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
if (ec)
{