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 dbus-sdr to look from the corrrect location.
Tested:
Combined with the other patches with this same topic, ipmitool sensor
list returns the same data as previously on an s7106 platform.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I68ae41a403b388ed76c583d30db69ac8fb7a29f1
diff --git a/dbus-sdr/sensorcommands.cpp b/dbus-sdr/sensorcommands.cpp
index 4753a7b..5a78ddb 100644
--- a/dbus-sdr/sensorcommands.cpp
+++ b/dbus-sdr/sensorcommands.cpp
@@ -309,8 +309,9 @@
.count() > updatePeriod)
{
ObjectValueTree managedObjects;
- boost::system::error_code ec = getManagedObjects(
- ctx, sensorConnection.c_str(), "/", managedObjects);
+ boost::system::error_code ec =
+ getManagedObjects(ctx, sensorConnection.c_str(),
+ "/xyz/openbmc_project/sensors", managedObjects);
if (ec)
{
phosphor::logging::log<phosphor::logging::level::ERR>(