From 4662fba06a56980d7bec0a061fdaa5581ecdd64d Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Thu, 24 Sep 2020 13:05:17 +0200 Subject: [PATCH] fixed bug when node is disabled --- pandora_console/include/class/ConsoleSupervisor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index d881418611..15392c0c8b 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -2489,6 +2489,10 @@ class ConsoleSupervisor $nodes = $cluster->getNodes(); foreach ($nodes as $node) { + if ($node['status'] == HA_DISABLED) { + continue; + } + $cluster_master = $cluster->isClusterMaster($node); $db_master = $cluster->isDBMaster($node);