Move objectmanager into the PDI-specified location
PDI specifies that the ObjectManager for sensors should be hosted at the
sensor root. This commit makes that a reality.
Tested:
Could use some help here. I don't use phosphor-virtual-sensors, but
other similar changes made to other daemons have been tested, along with
the other patches in this topic.
[1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml#L18
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I45cead6eaa841140dd88364131b94d628ccfdaa8
diff --git a/virtualSensor.cpp b/virtualSensor.cpp
index db07548..4588e5b 100644
--- a/virtualSensor.cpp
+++ b/virtualSensor.cpp
@@ -960,7 +960,8 @@
auto bus = sdbusplus::bus::new_default();
// Add the ObjectManager interface
- sdbusplus::server::manager_t objManager(bus, "/");
+ sdbusplus::server::manager_t objManager(bus,
+ "/xyz/openbmc_project/sensors");
// Create an virtual sensors object
phosphor::virtualSensor::VirtualSensors virtualSensors(bus);