mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- When scanning for config files, don't try to use directories as config
files ;)
This commit is contained in:
parent
ee9d655cbe
commit
5cd155c2a0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue