From 547d39cd88647d38a042b9c4d5593f07b181ea13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Mon, 6 Oct 2014 13:21:05 +0200 Subject: [PATCH] Push complete command to verbose array --- check_lsi_raid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_lsi_raid b/check_lsi_raid index 1117aeb..8e5f4b3 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -460,9 +460,9 @@ sub getPhysicalDevices{ if(scalar(@physDevices) == 0) { $command .= "/sall"; } elsif(scalar(@physDevices) == 1) { $command .= "/s$physDevices[0]"; } else { $command .= "/s".join(",", @physDevices); } + $command .= " show $action"; push $commands_a, $command; - $command .= " show $action"; my @output = `$command`; my @foundDevs; if(checkCommandStatus(\@output)) {