From 919c46b85a78b63fc770bde1aaee91bcdd66dc84 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Thu, 23 Nov 2017 08:16:00 +0000 Subject: fixed csv source (#1113) --- lib/oxidized/source/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/source') 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 -- cgit v1.2.1