summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-06-24 17:50:55 +0000
committerGreg Sabino Mullane2011-06-24 17:50:55 +0000
commitd4318aa11393f5a875881164249d64c54cde7731 (patch)
tree7b1f6c1e9e9779e970cfbcb076e73dbf6763a6c7 /check_postgres.pl
parentce3e0d13a293b9435ff01bde2b6c140c3129b8c7 (diff)
Make sure --action overrides the naming trick.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
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;
}