summaryrefslogtreecommitdiff
path: root/lib/oxidized/source/csv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/source/csv.rb')
-rw-r--r--lib/oxidized/source/csv.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb
index 5b43352..c8654b2 100644
--- a/lib/oxidized/source/csv.rb
+++ b/lib/oxidized/source/csv.rb
@@ -22,8 +22,10 @@ module Oxidized
nodes = []
open_file.each_line do |line|
next if line.match(/^\s*#/)
+
data = line.chomp.split(@cfg.delimiter, -1)
next if data.empty?
+
# map node parameters
keys = {}
@cfg.map.each do |key, position|