summaryrefslogtreecommitdiff
path: root/lib/oxidized/source/csv.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-05-06 12:28:43 +0300
committerSaku Ytti <saku@ytti.fi>2014-05-06 12:28:43 +0300
commiteff861dc81aed658cbccfcc2ea86b3d7f02d975d (patch)
tree8b024c196bd61fcff55bc42efd98597422378603 /lib/oxidized/source/csv.rb
parentefa7ee3789ace917a66904252090986af0400c25 (diff)
require config/vars earlier0.0.56
- we need config/vars before model - some whitespace changes Bump up gemspec
Diffstat (limited to 'lib/oxidized/source/csv.rb')
-rw-r--r--lib/oxidized/source/csv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb
index 113c272..484a186 100644
--- a/lib/oxidized/source/csv.rb
+++ b/lib/oxidized/source/csv.rb
@@ -26,7 +26,7 @@ class CSV < Source
keys[key.to_sym] = data[position]
end
keys[:model] = map_model keys[:model] if keys.key? :model
-
+
# map node specific vars, empty value is considered as nil
vars = {}
@cfg.vars_map.each { |key, position| vars[key.to_sym] = data[position].to_s.empty? ? nil : data[position] }