summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorNeil Lathwood <neil@lathwood.co.uk>2017-11-23 08:16:00 +0000
committerGitHub <noreply@github.com>2017-11-23 08:16:00 +0000
commit919c46b85a78b63fc770bde1aaee91bcdd66dc84 (patch)
treed074df5c734bd4ed207df64f6386d3d6e7ca97c1 /lib/oxidized
parentda8923512737f0d9383feaebaf43e781e914b71e (diff)
fixed csv source (#1113)
Diffstat (limited to 'lib/oxidized')
-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 27cb49e..4814bd7 100644
--- a/lib/oxidized/source/csv.rb
+++ b/lib/oxidized/source/csv.rb
@@ -21,7 +21,7 @@ class CSV < Source
def load
nodes = []
file = File.expand_path(@cfg.file)
- if @cfg.gpg?
+ file = if @cfg.gpg?
crypto = GPGME::Crypto.new password: @cfg.gpg_password
file = crypto.decrypt(File.open(file)).to_s
else