diff options
author | Neil Lathwood <neil@lathwood.co.uk> | 2017-11-23 08:16:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-23 08:16:00 +0000 |
commit | 919c46b85a78b63fc770bde1aaee91bcdd66dc84 (patch) | |
tree | d074df5c734bd4ed207df64f6386d3d6e7ca97c1 | |
parent | da8923512737f0d9383feaebaf43e781e914b71e (diff) |
fixed csv source (#1113)
-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 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 |