From e170d7db1dbcea28ef14c341c81bf676839faa51 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 08:20:49 +0000 Subject: Allow "must run xxx." - with no trailing whitespace --- bin/custodian-enqueue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index 8c1cb71..c53adc4 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -284,7 +284,7 @@ class MonitorConfig new_line = "#{pre} must run ping #{post}" return( parse_line( new_line ) ) - elsif ( line =~ /\s+must\s+run\s+([^\s]+)\s+/i ) + elsif ( line =~ /\s+must\s+run\s+([^\s]+)(\s+|\.)/i ) # # Get the service we're testing, and remove any trailing "." -- cgit v1.2.1