From 737ffa54eb42537f9fbd6bb6a2a708507fd802e3 Mon Sep 17 00:00:00 2001 From: mbakerbp Date: Tue, 24 Jan 2017 07:40:36 +0800 Subject: Update --- lib/oxidized/source/csv.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb index 757acf4..dc246ab 100644 --- a/lib/oxidized/source/csv.rb +++ b/lib/oxidized/source/csv.rb @@ -19,6 +19,7 @@ class CSV < Source def load nodes = [] + crypto = GPGME::Crypto.new file = (@cfg.gpg == 'false') ? open(File.expand_path @cfg.file) : crypto.decrypt(File.open(@cfg.file)) open(file).each_line do |line| next if line.match(/^\s*#/) -- cgit v1.2.1