From a5804359db8da4a889aa76380bd3bb5011cdd3c1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 5 Jun 2018 00:21:48 +0200 Subject: [PATCH] Remove redundant condition --- zabbix_scripts/check_pve_sudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_scripts/check_pve_sudo b/zabbix_scripts/check_pve_sudo index 302b8df..ca9361c 100644 --- a/zabbix_scripts/check_pve_sudo +++ b/zabbix_scripts/check_pve_sudo @@ -31,7 +31,7 @@ if ($cluster){ } elsif ($item->{type} eq 'node' and $item->{online}){ push @nodes, $item->{name}; } elsif ($item->{type} eq 'node'){ - $json->{status}->{all_online} = 0 unless ($item->{online}); + $json->{status}->{all_online} = 0; } } foreach my $node (@nodes){