summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-08-04 04:52:32 +0200
committerroot <root@vm-monitoring.spline.inf.fu-berlin.de>2013-08-04 04:52:32 +0200
commit96184bc90fb082dcdb1ded95c74f07204065016a (patch)
treef07cbde1495bf37b1df602c7f20bacc4eeb8075b
parentadef9502cb9562ceb63ad761abecde6bef8fdba4 (diff)
downloadformat-notify-96184bc90fb082dcdb1ded95c74f07204065016a.tar.gz
format-notify-96184bc90fb082dcdb1ded95c74f07204065016a.tar.bz2
format-notify-96184bc90fb082dcdb1ded95c74f07204065016a.zip
fix argument validation
-rwxr-xr-xformat-notify2
1 files changed, 1 insertions, 1 deletions
diff --git a/format-notify b/format-notify
index a0114c7..5f9dddd 100755
--- a/format-notify
+++ b/format-notify
@@ -19,7 +19,7 @@ def clean_output(status, output):
return re.sub(r'^[- :]*', '', output)
def main():
- if len(sys.argv) < 4:
+ if len(sys.argv) < 5:
print('Usage: %s (PIPE|--test) SERVICE STATUS OUTPUT' % sys.argv[0])
sys.exit(1)