Use a valid D-Bus interface name
D-Bus interfaces require a dotted name with at least two parts, with the
recommended name reverse FQDN style. Without this change, the service
config manager was constantly aborting because of the invalid name (with
the latest sdbusplus changes)
Tested: The service config manager is back up and running and can
interact with other entities on the bus.
Change-Id: I4d3683548d61c71f7a56b86d65b7e48a50f91e4d
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/src/main.cpp b/src/main.cpp
index 4eea773..d15a4b9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -306,6 +306,9 @@
initTimer = std::make_unique<boost::asio::steady_timer>(io);
conn->request_name(phosphor::service::serviceConfigSrvName);
auto server = sdbusplus::asio::object_server(conn, true);
+ auto mgrIntf = server.add_interface(phosphor::service::srcCfgMgrBasePath,
+ phosphor::service::srcCfgMgrIntf);
+ mgrIntf->initialize();
server.add_manager(phosphor::service::srcCfgMgrBasePath);
// Initialize the objects after systemd indicated startup finished.
auto userUpdatedSignal = std::make_unique<sdbusplus::bus::match::match>(