inventory: undo the capitilization of yaml decoder
yaml decoder capitalize the boolean values which is
not liked by c++ compiler so undoing the capitalization.
Change-Id: I1de142de76e21b2759db759c5a182c42400e34d1
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/scripts/writesensor.mako.cpp b/scripts/writesensor.mako.cpp
index 0b8d5f1..fbfe6a9 100644
--- a/scripts/writesensor.mako.cpp
+++ b/scripts/writesensor.mako.cpp
@@ -24,17 +24,16 @@
{"${dbus_property}",{
% for offset,values in property_value.iteritems():
{ ${offset},{
-<%
- valueType = values["type"]
-%>
+ <% valueType = values["type"] %>\
% for name,value in values.iteritems():
% if name == "type":
-<%
- continue
-%>
+ <% continue %>\
% endif
% if valueType == "string":
std::string("${value}"),
+ % elif valueType == "bool":
+ <% value = str(value).lower() %>\
+ ${value},
% else:
${value},
% endif