pep8 style changes
Fixed pep8 warnings in gen-fan-zone-defs.py
Change-Id: I78472a1e9ce1bd6eb14e0352398c6470fa144604
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
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 @@
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 @@
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: