NVMeSensorMain: Fix sensor object manager path
Change 661d4378467a ("Identify active sensors via the D-Bus "sensors"
service") added a trailing '/' to the path. Remove it, as it breaks
sensor detection by introspection.
Resolves: #23
Fixes: 661d4378467a ("Identify active sensors via the D-Bus "sensors" service")
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I6fed1a36b6feae84160cdb5e16a1bdb7cebed262
diff --git a/src/NVMeSensorMain.cpp b/src/NVMeSensorMain.cpp
index 1351456..96a3017 100644
--- a/src/NVMeSensorMain.cpp
+++ b/src/NVMeSensorMain.cpp
@@ -232,7 +232,7 @@
auto systemBus = std::make_shared<sdbusplus::asio::connection>(io);
systemBus->request_name("xyz.openbmc_project.NVMeSensor");
sdbusplus::asio::object_server objectServer(systemBus, true);
- objectServer.add_manager("/xyz/openbmc_project/sensors/");
+ objectServer.add_manager("/xyz/openbmc_project/sensors");
io.post([&]() { createSensors(io, objectServer, systemBus); });