Change object manager path
Since there's not a "settings" root as such, and the settings objects
are spread across the object namespace, register "/" as the path for the
d-bus object manager.
Change-Id: Ic012129b333cba8831c331803124b3e89642b536
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/settings_main.cpp b/settings_main.cpp
index 22d6146..0d775e2 100644
--- a/settings_main.cpp
+++ b/settings_main.cpp
@@ -7,8 +7,10 @@
{
auto bus = sdbusplus::bus::new_default();
- // Add sdbusplus ObjectManager for the settings root.
- sdbusplus::server::manager::manager objManager(bus, SETTINGS_ROOT);
+ // Add sdbusplus ObjectManager. The settings objects are spread across
+ // the object namespace and are not under a (settings) root. Hence register
+ // "/" as the path.
+ sdbusplus::server::manager::manager objManager(bus, "/");
phosphor::settings::Manager mgr(bus);