summaryrefslogtreecommitdiff
path: root/lib/oxidized/output
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/output')
-rw-r--r--lib/oxidized/output/file.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/output/file.rb b/lib/oxidized/output/file.rb
index 78db1d5..5327a80 100644
--- a/lib/oxidized/output/file.rb
+++ b/lib/oxidized/output/file.rb
@@ -39,10 +39,11 @@ class OxidizedFile < Output
File.read File.join(cfg_dir, node_name)
else
path = Dir.glob(File.join(cfg_dir, '**', node_name)).first # fetch node in all groups
- return nil if not path
File.read path
end
end
+ rescue Errno::ENOENT
+ return nil
end
def version node, group