common: constrain object mapper call
Fix this call site where we are fetching configuration to call
'GetSubTree' with our configuration interfaces as argument.
resolves [1]
Tested: With SPI device code updater. Configuration is fetched as
expected.
```
<7> [config] looking for dbus interface xyz.openbmc_project.Configuration.BIOS
```
```
busctl call xyz.openbmc_project.ObjectMapper /xyz/openbmc_project/object_mapper xyz.openbmc_project.ObjectMapper GetSubTree sias /xyz/openbmc_project/ 0 1 xyz.openbmc_project.Configuration.BIOS
a{sa{sas}} 1 "/xyz/openbmc_project/inventory/system/board/chassis/HostSPIFlash" 1 "xyz.openbmc_project.EntityManager" 1 "xyz.openbmc_project.Configuration.BIOS"
```
References:
[1] https://gerrit.openbmc.org/c/openbmc/phosphor-bmc-code-mgmt/+/74893/comment/8c7c7e83_20f92624/
Change-Id: Iea6211aebd01c4b777b13dc02120be92c347824a
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/common/src/software_manager.cpp b/common/src/software_manager.cpp
index 9c80e62..351533f 100644
--- a/common/src/software_manager.cpp
+++ b/common/src/software_manager.cpp
@@ -43,8 +43,8 @@
.service("xyz.openbmc_project.ObjectMapper")
.path("/xyz/openbmc_project/object_mapper");
- auto res =
- co_await client.get_sub_tree("/xyz/openbmc_project/inventory", 0, {});
+ auto res = co_await client.get_sub_tree("/xyz/openbmc_project/inventory", 0,
+ configurationInterfaces);
for (auto& iface : configurationInterfaces)
{