diff options
author | Saku Ytti <saku@ytti.fi> | 2014-12-13 03:09:36 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-12-13 03:09:36 +0200 |
commit | 7c5d336aa0fbf8dc731eb1d88fb16c3d4b11a162 (patch) | |
tree | e4c37b3fd1f30a202a9a299438574cf42f9e1696 | |
parent | ffc15a6b44d134dbd21c268c32f2fd89033228b3 (diff) |
Skip comments
closes #64
-rw-r--r-- | lib/oxidized/source/csv.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb index 462d759..3b66e65 100644 --- a/lib/oxidized/source/csv.rb +++ b/lib/oxidized/source/csv.rb @@ -19,6 +19,7 @@ class CSV < Source def load nodes = [] open(@cfg.file).each_line do |line| + next if line.match /^\s*#/ data = line.chomp.split @cfg.delimiter next if data.empty? # map node parameters |