summaryrefslogtreecommitdiff
path: root/lib/oxidized/source
diff options
context:
space:
mode:
authormbakerbp <michael.baker@bulletproof.net>2017-01-24 06:50:24 +0800
committermbakerbp <michael.baker@bulletproof.net>2017-01-24 06:50:24 +0800
commitda69f568422ad918e734ecbc0feef15b1b7cac03 (patch)
tree56c3d578a697e81d11e056a3994883f313206769 /lib/oxidized/source
parente4680d181c368d901e27023c1f7ab524007d5b64 (diff)
Syntax error
Diffstat (limited to 'lib/oxidized/source')
-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 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)