Skip to content

Commit

Permalink
Merge pull request #14506 from criztovyl/criztovyl/fix-oci-start-erro…
Browse files Browse the repository at this point in the history
…r-shadow

Fix overwriting err for OCI "minikube start"
  • Loading branch information
spowelljr committed Jul 14, 2022
2 parents 755474c + 444f21f commit 8177307
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/drivers/kic/kic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8177307

Please sign in to comment.