From 742c70df3e41af51a130207df9809aa9f4a4972a Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Thu, 19 Jul 2012 11:48:03 -0700 Subject: [PATCH] Sort paths matched by a glob when '-f /some/wild*card' is given --- lib/logstash/agent.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/agent.rb b/lib/logstash/agent.rb index 9f76d8b2d..283608457 100644 --- a/lib/logstash/agent.rb +++ b/lib/logstash/agent.rb @@ -244,7 +244,7 @@ class LogStash::Agent else # Get a list of files matching a glob. If the user specified a single # file, then this will only have one match and we are still happy. - paths = Dir.glob(@config_path) + paths = Dir.glob(@config_path).sort end concatconfig = []