diff options
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/source/csv.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb index c41162d..757acf4 100644 --- a/lib/oxidized/source/csv.rb +++ b/lib/oxidized/source/csv.rb @@ -19,7 +19,7 @@ class CSV < Source def load nodes = [] - file = @cfg.gpg == 'false' ? open(File.expand_path @cfg.file) : crypto.decrypt File.open(@cfg.file) + file = (@cfg.gpg == 'false') ? open(File.expand_path @cfg.file) : crypto.decrypt(File.open(@cfg.file)) open(file).each_line do |line| next if line.match(/^\s*#/) data = line.chomp.split(@cfg.delimiter, -1) |