diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-13 22:11:28 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-13 22:11:28 +0000 |
commit | b2f331ae09a295ea2fd2923ed9ab7de18fceba04 (patch) | |
tree | 538c5cecc405ebf6f4448ea25b9804a0231ea3bb | |
parent | bfa2a562f0f12fbf2560966dbaea4d544b188004 (diff) |
Remove the newline from lines prior to parsing.
-rwxr-xr-x | bin/custodian-enqueue | 4 |
1 files changed, 3 insertions, 1 deletions
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 |