monitor:yaml: Fix generated code
An if statement in the mako template went around two FanDefinition
members instead of one, leaving off the last value when a condition
name was in the input yaml.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ifa485174e7195b3738528236cc6c3344917ea37d
diff --git a/monitor/gen-fan-monitor-defs.py b/monitor/gen-fan-monitor-defs.py
index 8b255da..bbd8368 100755
--- a/monitor/gen-fan-monitor-defs.py
+++ b/monitor/gen-fan-monitor-defs.py
@@ -91,11 +91,11 @@
(fan_data['condition'] is not None):
make_condition(condition::${fan_data['condition']['name']}(\
${indent(getCondParams(cond=fan_data['condition']), 5)}\
- ))
+ )),
%else:
{},
- false // set_func_on_present. Hardcoded to false.
%endif
+ false // set_func_on_present. Hardcoded to false.
},
%endfor
};