summaryrefslogtreecommitdiff
path: root/lib/oxidized/output/file.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2016-12-12 11:54:33 +0200
committerSaku Ytti <saku@ytti.fi>2016-12-12 11:54:33 +0200
commit8dbd596ed73ff9d9cbe68093372fee799b6fd482 (patch)
treef1962767273516b8ca2ed486d4da2b0ca21c8671 /lib/oxidized/output/file.rb
parentcf37804008de0f3bacec7f981d53a2991e883e0b (diff)
Recursively search from one dir above specified
Fixes #626
Diffstat (limited to 'lib/oxidized/output/file.rb')
-rw-r--r--lib/oxidized/output/file.rb2
1 files changed, 1 insertions, 1 deletions
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