diff options
Diffstat (limited to 'lib/oxidized/output')
-rw-r--r-- | lib/oxidized/output/file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |