summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-25 03:51:45 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-01-25 03:51:45 -0600
commita8c8006e93a6682eaeb6184ee609281db762244e (patch)
tree3884f796df6713de49652153b00ae768a6879f8b
parente9fef9fe9262c3b83dd46e4798c929fbc086c563 (diff)
downloadphosphor-fan-presence-03-26-2018.tar.gz
phosphor-fan-presence-03-26-2018.zip
Lock out zones based on all conditions not matched instead of any condition not matched03-26-2018
This restores CPU1 fan control on Talos systems when CPU1 is installed.
-rwxr-xr-xcontrol/gen-fan-zone-defs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py
index c35bcd3..61c65c8 100755
--- a/control/gen-fan-zone-defs.py
+++ b/control/gen-fan-zone-defs.py
@@ -609,9 +609,9 @@ def getEventsInZone(zone_num, zone_conditions, events_data):
for p in e['precondition']['events']:
# Verify precondition applies to current zone
if 'zone_conditions' in p:
+ zone_allowed = False
for zc in p['zone_conditions']:
if 'zones' in zc:
- zone_allowed = False
for z in zc['zones']:
if z == zone_num:
zone_allowed = True
OpenPOWER on IntegriCloud