summaryrefslogtreecommitdiffstats
path: root/control
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2017-06-02 14:35:18 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-06-26 02:06:04 +0000
commit67e955123241fa4f168a21b4585ace364d4c0d44 (patch)
tree745fc7f1fc0db632194f9d03691df124bf3f8065 /control
parentee8a281663caa3567376fc3c33b3559060df76f8 (diff)
downloadphosphor-fan-presence-67e955123241fa4f168a21b4585ace364d4c0d44.tar.gz
phosphor-fan-presence-67e955123241fa4f168a21b4585ace364d4c0d44.zip
pep8 style changes
Fixed pep8 warnings in gen-fan-zone-defs.py Change-Id: I78472a1e9ce1bd6eb14e0352398c6470fa144604 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'control')
-rwxr-xr-xcontrol/gen-fan-zone-defs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py
index 82eecb4..293bb02 100755
--- a/control/gen-fan-zone-defs.py
+++ b/control/gen-fan-zone-defs.py
@@ -197,7 +197,7 @@ def getFansInZone(zone_num, profiles, fan_data):
if zone_num != f['cooling_zone']:
continue
- #'cooling_profile' is optional (use 'all' instead)
+ # 'cooling_profile' is optional (use 'all' instead)
if f.get('cooling_profile') is None:
profile = "all"
else:
@@ -275,16 +275,16 @@ def buildZoneData(zone_data, fan_data, events_data, zone_conditions_data):
for z in group['zones']:
zone = {}
- #'zone' is required
- if (not 'zone' in z) or (z['zone'] is None):
+ # 'zone' is required
+ if ('zone' not in z) or (z['zone'] is None):
sys.exit("Missing fan zone number in " + zone_yaml)
zone['num'] = z['zone']
zone['full_speed'] = z['full_speed']
- #'cooling_profiles' is optional (use 'all' instead)
- if (not 'cooling_profiles' in z) or \
+ # 'cooling_profiles' is optional (use 'all' instead)
+ if ('cooling_profiles' not in z) or \
(z['cooling_profiles'] is None):
profiles = ["all"]
else:
OpenPOWER on IntegriCloud