diff options
author | mbakerbp <michael.baker@bulletproof.net> | 2017-01-24 06:50:24 +0800 |
---|---|---|
committer | mbakerbp <michael.baker@bulletproof.net> | 2017-01-24 06:50:24 +0800 |
commit | da69f568422ad918e734ecbc0feef15b1b7cac03 (patch) | |
tree | 56c3d578a697e81d11e056a3994883f313206769 /lib | |
parent | e4680d181c368d901e27023c1f7ab524007d5b64 (diff) |
Syntax error
Diffstat (limited to 'lib')
-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) |