summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized')
-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