diff options
author | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-01-25 03:51:45 -0600 |
---|---|---|
committer | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-01-25 03:51:45 -0600 |
commit | a8c8006e93a6682eaeb6184ee609281db762244e (patch) | |
tree | 3884f796df6713de49652153b00ae768a6879f8b | |
parent | e9fef9fe9262c3b83dd46e4798c929fbc086c563 (diff) | |
download | phosphor-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-x | control/gen-fan-zone-defs.py | 2 |
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 |