fix settings machine auth api key

This commit is contained in:
Willy Kloucek
2022-04-29 08:07:52 +02:00
parent afa8ca8246
commit 703a333ff0

View File

@@ -91,7 +91,7 @@ func EnsureDefaults(cfg *config.Config) {
}
if cfg.Metadata.MachineAuthAPIKey == "" && cfg.Commons != nil && cfg.Commons.MachineAuthAPIKey != "" {
cfg.MachineAuthAPIKey = cfg.Commons.MachineAuthAPIKey
cfg.Metadata.MachineAuthAPIKey = cfg.Commons.MachineAuthAPIKey
}
}