summaryrefslogtreecommitdiff
path: root/lib/oxidized/source
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-12-13 03:09:36 +0200
committerSaku Ytti <saku@ytti.fi>2014-12-13 03:09:36 +0200
commit7c5d336aa0fbf8dc731eb1d88fb16c3d4b11a162 (patch)
treee4c37b3fd1f30a202a9a299438574cf42f9e1696 /lib/oxidized/source
parentffc15a6b44d134dbd21c268c32f2fd89033228b3 (diff)
Skip comments
closes #64
Diffstat (limited to 'lib/oxidized/source')
-rw-r--r--lib/oxidized/source/csv.rb1
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