summaryrefslogtreecommitdiffstats
path: root/scripts/readfru.mako.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/readfru.mako.cpp')
-rw-r--r--scripts/readfru.mako.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/readfru.mako.cpp b/scripts/readfru.mako.cpp
index 40e4812..061b4e0 100644
--- a/scripts/readfru.mako.cpp
+++ b/scripts/readfru.mako.cpp
@@ -12,10 +12,11 @@ extern const FruMap frus = {
{"${object}",{
% for interface,properties in interfaces.items():
{"${interface}",{
- % for dbus_property,property_value in properties.items():
- {"${dbus_property}",{
- "${property_value.get("IPMIFruSection", "")}",
- "${property_value.get("IPMIFruProperty", "")}",\
+ % if properties:
+ % for dbus_property,property_value in properties.items():
+ {"${dbus_property}",{
+ "${property_value.get("IPMIFruSection", "")}",
+ "${property_value.get("IPMIFruProperty", "")}", \
<%
delimiter = property_value.get("IPMIFruValueDelimiter")
if not delimiter:
@@ -25,7 +26,8 @@ extern const FruMap frus = {
%>
"${delimiter}"
}},
- % endfor
+ % endfor
+ %endif
}},
% endfor
}},
OpenPOWER on IntegriCloud