From 747e759248163e6c2fb554dae33785b5d8595653 Mon Sep 17 00:00:00 2001 From: digimer Date: Wed, 1 Nov 2023 21:01:25 -0400 Subject: [PATCH] Updated node restart logic to boot unless power or temps are known bad Signed-off-by: digimer --- Anvil/Tools/ScanCore.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Anvil/Tools/ScanCore.pm b/Anvil/Tools/ScanCore.pm index 8af2b18f..41e35bdf 100644 --- a/Anvil/Tools/ScanCore.pm +++ b/Anvil/Tools/ScanCore.pm @@ -2716,7 +2716,7 @@ LIMIT 1;"; # * 0 = No UPSes found for the host # * 1 = One or more UPSes found and at least one has input power from mains. # * 2 = One or more UPSes found, all are running on battery. - if (($temp_health eq "1") && ($power_health eq "1")) + if (($temp_health ne "2") && ($power_health ne "2")) { $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "log_0673", variables => { host_name => $host_name }});