Skip to content

Commit 5ca02f9

Browse files
authored
Merge pull request #21786 from nirs/registry-creds-fix
registry-creds: Fix segfault without config file
2 parents ec7f42e + 45979b9 commit 5ca02f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/minikube/cmd/config/configure.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,9 @@ func loadAddonConfigFile(addon, configFilePath string) (ac *addonConfig) {
156156
exit.Message(reason.Kind{ExitCode: reason.ExProgramConfig, Advice: "provide a valid config file"},
157157
fmt.Sprintf("error reading config file: %v", err))
158158
}
159-
160-
return &cf.Addons
161159
}
162-
return nil
160+
161+
return &cf.Addons
163162
}
164163

165164
// Processes metallb addon config from configFile if it exists otherwise resorts to default behavior

0 commit comments

Comments
 (0)