Skip to content

Commit

Permalink
- When scanning for config files, don't try to use directories as config
Browse files Browse the repository at this point in the history
  files ;)
  • Loading branch information
jordansissel committed Mar 8, 2013
1 parent ee9d655 commit 5cd155c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/logstash/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def read_config
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
Expand Down

0 comments on commit 5cd155c

Please sign in to comment.