PerformScan: allInterfaces is a subtree result
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I4084170f43a49ff5bd99791372a613f27622b101
diff --git a/src/PerformScan.cpp b/src/PerformScan.cpp
index b525ab4..a4e2b74 100644
--- a/src/PerformScan.cpp
+++ b/src/PerformScan.cpp
@@ -294,7 +294,7 @@
probeCommand, thisRef,
[&, recordPtr,
probeName](FoundDevices& foundDevices,
- const MapperGetSubTreeResponse& allInterfaces) {
+ const MapperGetSubTreeResponse& dbusSubtree) {
_passed = true;
std::set<nlohmann::json> usedNames;
passedProbes.push_back(probeName);
@@ -384,8 +384,8 @@
// map.
const DBusObject* dbusObject = &emptyObject;
- auto ifacesIt = allInterfaces.find(path);
- if (ifacesIt != allInterfaces.end())
+ auto ifacesIt = dbusSubtree.find(path);
+ if (ifacesIt != dbusSubtree.end())
{
dbusObject = &ifacesIt->second;
}