Skip to content

Commit 1a95e0b

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 7211f80 + ad15f95 commit 1a95e0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/daemon/main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,11 @@ func loadConfig(cfg *Config) error {
465465
}
466466

467467
func (cfg *Config) ConfigPath() string {
468-
return filepath.Join(cfg.ConfigDir, "config.yml")
468+
if _, err := os.Stat(filepath.Join(cfg.ConfigDir, "config.yaml")); os.IsNotExist(err) {
469+
return filepath.Join(cfg.ConfigDir, "config.yml")
470+
} else {
471+
return filepath.Join(cfg.ConfigDir, "config.yaml")
472+
}
469473
}
470474

471475
func (cfg *Config) StatePath() string {

0 commit comments

Comments
 (0)