[pve-devel] [PATCH ha-manager] Fix check for maintenance mode

Fabian Ebner f.ebner at proxmox.com
Mon Dec 2 09:45:32 CET 2019


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 src/PVE/HA/Manager.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/HA/Manager.pm b/src/PVE/HA/Manager.pm
index d1d70b8..1eb117f 100644
--- a/src/PVE/HA/Manager.pm
+++ b/src/PVE/HA/Manager.pm
@@ -607,7 +607,7 @@ sub next_state_stopped {
 	return;
     }
 
-    if ($ns->node_is_offline_delayed($sd->{node}) && !$ns->get_node_state($sd->{node}) ne 'maintenance') {
+    if ($ns->node_is_offline_delayed($sd->{node}) && $ns->get_node_state($sd->{node}) ne 'maintenance') {
 	&$change_service_state($self, $sid, 'fence');
 	return;
     }
-- 
2.20.1




More information about the pve-devel mailing list