Generate sensor to trust association

Each sensor listed to be associated with a trust group is defined to
either be part of the trust group or just affected by the results of the
trust group. This is denoted by defining an "in_trust" boolean attribute
that will include the sensor in the trust group for determination of
trust when true, otherwise only be included in the resulting trust
affect when defined as false.

When no "in_trust" attribute is given, the sensor is defaulted to be
included in the trust group determining trust.

Tested: Current trust group associations & reactions are unchanged

Change-Id: I717074bc1a32a07dc59f172a4c823c7e2bb84f8c
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/monitor/gen-fan-monitor-defs.py b/monitor/gen-fan-monitor-defs.py
index 965625b..7a1b874 100755
--- a/monitor/gen-fan-monitor-defs.py
+++ b/monitor/gen-fan-monitor-defs.py
@@ -57,12 +57,15 @@
 ##If a group were to ever need a different constructor,
 ##it could be handled here.
 <%def name="get_lambda_contents(group)">
-            std::vector<std::string> names{
-            %for sensor in group['sensors']:
-                "${sensor['name']}",
+            std::vector<GroupDefinition> group{
+            %for member in group['group']:
+            <%
+                in_trust = str(member.get('in_trust', "true")).lower()
+            %>
+                GroupDefinition{"${member['name']}", ${in_trust}},
             %endfor
             };
-            return std::make_unique<${group['class']}>(names);
+            return std::make_unique<${group['class']}>(group);
 </%def>
 const std::vector<CreateGroupFunction> trustGroups
 {