From b73f698dcd3516ab3463265b22204e155a5bc535 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Nov 2012 23:25:46 +0000 Subject: Be explicit that nil lines are OK. --- bin/custodian-enqueue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/custodian-enqueue') 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/ ) # -- cgit v1.2.1