From b2f331ae09a295ea2fd2923ed9ab7de18fceba04 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Nov 2012 22:11:28 +0000 Subject: Remove the newline from lines prior to parsing. --- bin/custodian-enqueue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index 72ff5d3..e92c49b 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -209,6 +209,8 @@ class MonitorConfig # def parse_line( line ) + line.chomp! + # # A blank line, or a comment may be skipped. # @@ -414,7 +416,7 @@ class MonitorConfig end end else - puts "Unknown line: #{line}" if ( line.length > 2 ) + puts "Unknown line: '#{line}'" end end -- cgit v1.2.1