From d4318aa11393f5a875881164249d64c54cde7731 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 24 Jun 2011 13:50:55 -0400 Subject: [PATCH] Make sure --action overrides the naming trick. --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index e9c499939..b432e16b9 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -901,7 +901,7 @@ our $SIMPLE = $OUTPUT eq 'simple' ? 1 : 0; ## See if we need to invoke something based on our name our $action = $opt{action} || ''; -if ($ME =~ /check_postgres_(\w+)/) { +if ($ME =~ /check_postgres_(\w+)/ and ! defined $opt{action}) { $action = $1; } -- 2.30.2