probe: don't match unsupported json types
Prior to this patch unrecognized json types, such as arrays would cause
a probe statement to match.
Change-Id: I05575e70ad5841b988ca1ae929381011c4cec28e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index ec38dde..038bd41 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -332,6 +332,7 @@
{
std::cerr << "unexpected dbus probe type "
<< match.second.type_name() << "\n";
+ deviceMatches = false;
}
}
}