diff options
author | Samer Abdel-Hafez <sam@arahant.net> | 2013-10-15 23:17:20 +0200 |
---|---|---|
committer | Samer Abdel-Hafez <sam@arahant.net> | 2013-10-15 23:17:20 +0200 |
commit | c7d482c514e3d3917cbeb9a95ea8babf22116fe3 (patch) | |
tree | efcb61f0860d7dde6cc31393a59c7db9a328cc88 /lib/oxidized/output | |
parent | ff5f75ad040fc40484ee186e609e8b5af668d7ae (diff) |
Update file.rb
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 |