Merge pull request #14506 from criztovyl/criztovyl/fix-oci-start-error-shadow

Fix overwriting err for OCI "minikube start"
pull/14599/head
Steven Powell 2022-07-14 16:20:36 -07:00 committed by GitHub
commit 8177307683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -399,8 +399,7 @@ func (d *Driver) Restart() error {
func (d *Driver) Start() error {
if err := oci.StartContainer(d.NodeConfig.OCIBinary, d.MachineName); err != nil {
oci.LogContainerDebug(d.OCIBinary, d.MachineName)
_, err := oci.DaemonInfo(d.OCIBinary)
if err != nil {
if _, err := oci.DaemonInfo(d.OCIBinary); err != nil {
return errors.Wrapf(oci.ErrDaemonInfo, "debug daemon info %q", d.MachineName)
}
return errors.Wrap(err, "start")