Sort config files as documented.
This commit is contained in:
parent
af0e9b1477
commit
8483a0dd40
|
@ -8,6 +8,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue