From 8dbd596ed73ff9d9cbe68093372fee799b6fd482 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Mon, 12 Dec 2016 11:54:33 +0200 Subject: Recursively search from one dir above specified Fixes #626 --- lib/oxidized/output/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/output/file.rb b/lib/oxidized/output/file.rb index 5327a80..45f72e1 100644 --- a/lib/oxidized/output/file.rb +++ b/lib/oxidized/output/file.rb @@ -38,7 +38,7 @@ class OxidizedFile < Output if File.exists? File.join(cfg_dir, node_name) # node configuration file is stored on base directory File.read File.join(cfg_dir, node_name) else - path = Dir.glob(File.join(cfg_dir, '**', node_name)).first # fetch node in all groups + path = Dir.glob(File.join(File.dirname(cfg_dir), '**', node_name)).first # fetch node in all groups File.read path end end -- cgit v1.2.1