Skip to content

Commit

Permalink
Merge pull request #588 from ChrisHines/config-sort
Browse files Browse the repository at this point in the history
Sort config files as documented.
  • Loading branch information
diptanu committed Dec 15, 2015
2 parents 9e8e766 + 1668a48 commit a57cc6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os"
"path/filepath"
"runtime"
"sort"
"strings"
"time"

Expand Down Expand Up @@ -705,6 +706,8 @@ func LoadConfigDir(dir string) (*Config, error) {
return &Config{}, nil
}

sort.Strings(files)

var result *Config
for _, f := range files {
config, err := LoadConfigFile(f)
Expand Down

0 comments on commit a57cc6f

Please sign in to comment.