- When scanning for config files, don't try to use directories as config

files ;)
This commit is contained in:
Jordan Sissel 2013-03-08 13:50:43 -08:00
parent ee9d655cbe
commit 5cd155c2a0

View file

@ -258,6 +258,7 @@ class LogStash::Agent
is_yaml = false
concatconfig = []
paths.each do |path|
next if File.directory?(path)
file = File.new(path)
if File.extname(file) == '.yaml'
# assume always YAML if even one file is