summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 484a186..462d759 100644
--- a/lib/oxidized/source/csv.rb
+++ b/lib/oxidized/source/csv.rb
@@ -20,6 +20,7 @@ class CSV < Source
nodes = []
open(@cfg.file).each_line do |line|
data = line.chomp.split @cfg.delimiter
+ next if data.empty?
# map node parameters
keys = {}
@cfg.map.each do |key, position|