summaryrefslogtreecommitdiffstats
path: root/control/gen-fan-zone-defs.py
diff options
context:
space:
mode:
Diffstat (limited to 'control/gen-fan-zone-defs.py')
-rwxr-xr-xcontrol/gen-fan-zone-defs.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py
index e875e32..a5e4809 100755
--- a/control/gen-fan-zone-defs.py
+++ b/control/gen-fan-zone-defs.py
@@ -702,8 +702,16 @@ def getIfacesInZone(zone_ifaces):
props = []
for p in i['properties']:
prop = {}
- prop['name'] = str(p['name']).lower()
+ prop['name'] = p['name']
+ prop['func'] = str(p['name']).lower()
prop['type'] = parse_cpp_type(p['type'])
+ if ('persist' in p):
+ persist = p['persist']
+ if (persist is not None):
+ if (isinstance(persist, bool)):
+ prop['persist'] = 'true' if persist else 'false'
+ else:
+ prop['persist'] = 'false'
vals = []
for v in p['values']:
val = v['value']
OpenPOWER on IntegriCloud