diff options
author | mbakerbp <michael.baker@bulletproof.net> | 2017-01-24 07:50:44 +0800 |
---|---|---|
committer | mbakerbp <michael.baker@bulletproof.net> | 2017-01-24 07:50:44 +0800 |
commit | 0e7bbeaad452e8e719e1d66c314bcc4523e46579 (patch) | |
tree | fe539558c070ce34d7da2d1d10c3e04c4efc1b7c | |
parent | 62a990bc08c23684840d34eccd46c54197cb7d02 (diff) |
GPG support working
-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 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 |