From c7d482c514e3d3917cbeb9a95ea8babf22116fe3 Mon Sep 17 00:00:00 2001 From: Samer Abdel-Hafez Date: Tue, 15 Oct 2013 23:17:20 +0200 Subject: Update file.rb --- lib/oxidized/output/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/output') diff --git a/lib/oxidized/output/file.rb b/lib/oxidized/output/file.rb index 8a53f91..6e1a231 100644 --- a/lib/oxidized/output/file.rb +++ b/lib/oxidized/output/file.rb @@ -34,7 +34,7 @@ class OxFile < Output if File.exists?("#{cfg_dir}/#{node}") # node configuration file is stored on base directory IO.readlines File.join(cfg_dir, node) else - file = Find.find('.').lazy.find{|e|e.match /#{node}/} + file = if file open(file, 'r').readlines else -- cgit v1.2.1