summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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