Add ObjectManager in the right place
Per
https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/55308
dbus-sensors has been putting the ObjectManager in the wrong place. Fix
that.
Tested:
Loaded build with all patches under this same topic, and observed IPMI
and Redfish trees working correctly and responding with sensor data.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Iefe050fe50658de6e1f215eab95b1f772e50eb4a
diff --git a/src/IntrusionSensorMain.cpp b/src/IntrusionSensorMain.cpp
index f46254f..3b63b6e 100644
--- a/src/IntrusionSensorMain.cpp
+++ b/src/IntrusionSensorMain.cpp
@@ -419,11 +419,14 @@
// setup connection to dbus
boost::asio::io_service io;
auto systemBus = std::make_shared<sdbusplus::asio::connection>(io);
- auto objServer = sdbusplus::asio::object_server(systemBus);
// setup object server, define interface
systemBus->request_name("xyz.openbmc_project.IntrusionSensor");
+ sdbusplus::asio::object_server objServer(systemBus, true);
+
+ objServer.add_manager("/xyz/openbmc_project/sensors");
+
std::shared_ptr<sdbusplus::asio::dbus_interface> ifaceChassis =
objServer.add_interface(
"/xyz/openbmc_project/Intrusion/Chassis_Intrusion",