summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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