fix settings machine auth api key

This commit is contained in:
Willy Kloucek committed 2022-04-29 08:07:52 +02:00
1 parent afa8ca8246
commit 703a333ff0
1 file changed
+1 -1
@@ -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
}
}