summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-13 23:25:46 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-13 23:25:46 +0000
commit021bfa5d6343e0d0b63fe16180a190c27c12a529 (patch)
treee9c40a8b0dfe95bf70b644d51e7beb261549e273 /bin
parent57d324f3b4148dd6f39a3c8d2936989fde4b14be (diff)
Be explicit that nil lines are OK.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/custodian-enqueue6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index a023792..8c1cb71 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -239,17 +239,17 @@ class MonitorConfig
#
def parse_line( line )
- line.chomp!
+ line.chomp! if ( !line.nil? )
#
# A blank line, or a comment may be skipped.
#
- return if ( ( line =~ /^#/ ) || ( line.length < 1 ) )
+ return nil if ( ( line.nil? ) || ( line =~ /^#/ ) || ( line.length < 1 ) )
#
# The specification of mauve-server to which we should raise our alerts to.
#
- return if ( line =~ /Mauve\s+server(.*)source/ )
+ return nil if ( line =~ /Mauve\s+server(.*)source/ )
#