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 | 019486e27ace0a0534a31f1cd70bf29e3287ed17 (patch) | |
| tree | 538c5cecc405ebf6f4448ea25b9804a0231ea3bb /bin/custodian-enqueue | |
| parent | fec61848ae594fca52311274b9b5669fac402745 (diff) | |
  Remove the newline from lines prior to parsing.
Diffstat (limited to 'bin/custodian-enqueue')
| -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 | 
