From 7a636fb4ee11488cc87bd2c320b1f8b91872ffa0 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 23 Apr 2020 13:30:17 +0200 Subject: [PATCH] Fix #1957 --- network/paloalto/ssh/mode/environment.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/network/paloalto/ssh/mode/environment.pm b/network/paloalto/ssh/mode/environment.pm index a5e4c6349..e38707463 100644 --- a/network/paloalto/ssh/mode/environment.pm +++ b/network/paloalto/ssh/mode/environment.pm @@ -37,7 +37,7 @@ sub set_system { $self->{thresholds} = { default => [ ['false', 'OK'], - ['.*', 'CRITICAL'], + ['.*', 'CRITICAL'] ] }; @@ -52,6 +52,7 @@ sub ssh_execute { ($self->{results}, $self->{exit_code}) = $options{custom}->execute_command( command => 'show system environmentals', + ForceArray => ['entry'] ); }