bugfix: entitymanager: no longer skip w/o Exposes
Previously, the code would skip over some processing if the profile did
not have an Exposes key. The Exposes key is not required, however,
leaving it out is uncommon.
Tested: Verified that with Exposes not present in a configuration file,
the information is now published to dbus.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I9b0e27e98c1e30c1e8ff8a6daa3dda6c71d4a31f
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index 4e7ea9d..f135c20 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -1529,11 +1529,16 @@
foundDeviceIdx);
}
}
+
auto findExpose = record.find("Exposes");
if (findExpose == record.end())
{
+ _systemConfiguration[recordName] = record;
+ logDeviceAdded(record);
+ foundDeviceIdx++;
continue;
}
+
for (auto& expose : *findExpose)
{
for (auto keyPair = expose.begin();