[icinga-checkins] icinga.org: icinga-core/fholzer/core: Fix map syntax

git at icinga.org git at icinga.org
Mon Apr 23 14:12:18 CEST 2012


Module: icinga-core
Branch: fholzer/core
Commit: 1baab57845f332a98f2b66b5847ac0607fd98f3d
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=1baab57845f332a98f2b66b5847ac0607fd98f3d

Author: Alexander Wirt <formorer at grml.org>
Date:   Mon Apr 23 13:41:57 2012 +0200

Fix map syntax

---

 tools/icinga_verification.pl |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 485ce31..3162d0a 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -365,8 +365,7 @@ sub which (@) {
     push @path, $icinga_path;
 
     foreach my $binary (@binaries) {
-        map { -x "$_/$binary" && return "$_/$binary" }
-            @path );
+        map { -x "$_/$binary" && return "$_/$binary" } @path;
     }
     return undef;
 }





More information about the icinga-checkins mailing list