From da69f568422ad918e734ecbc0feef15b1b7cac03 Mon Sep 17 00:00:00 2001 From: mbakerbp Date: Tue, 24 Jan 2017 06:50:24 +0800 Subject: Syntax error --- lib/oxidized/source/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized') 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) -- cgit v1.2.1