From 0e7bbeaad452e8e719e1d66c314bcc4523e46579 Mon Sep 17 00:00:00 2001 From: mbakerbp Date: Tue, 24 Jan 2017 07:50:44 +0800 Subject: GPG support working --- lib/oxidized/source/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb index 85fee77..449b297 100644 --- a/lib/oxidized/source/csv.rb +++ b/lib/oxidized/source/csv.rb @@ -21,7 +21,7 @@ class CSV < Source nodes = [] if @cfg.gpg != 'false' crypto = GPGME::Crypto.new :password => @cfg.gpg_password - file = crypto.decrypt(File.open(@cfg.file)) + file = crypto.decrypt(File.open(@cfg.file)).to_s else file = open(File.expand_path @cfg.file) end -- cgit v1.2.1