summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormbakerbp <michael.baker@bulletproof.net>2017-01-24 07:50:44 +0800
committermbakerbp <michael.baker@bulletproof.net>2017-01-24 07:50:44 +0800
commit0e7bbeaad452e8e719e1d66c314bcc4523e46579 (patch)
treefe539558c070ce34d7da2d1d10c3e04c4efc1b7c /lib
parent62a990bc08c23684840d34eccd46c54197cb7d02 (diff)
GPG support working
Diffstat (limited to 'lib')
-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 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