Skip to content

Commit

Permalink
Merge pull request #4439 from afbjorklund/cache-none
Browse files Browse the repository at this point in the history
Cache: don't use ssh runner for the none driver
  • Loading branch information
sharifelgamal authored Jun 6, 2019
2 parents 70cdf33 + f4aaef7 commit 80e200e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/minikube/machine/cache_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import (
"k8s.io/minikube/pkg/minikube/config"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/cruntime"
"k8s.io/minikube/pkg/minikube/sshutil"
)

const tempLoadDir = "/tmp"
Expand Down Expand Up @@ -129,11 +128,10 @@ func CacheAndLoadImages(images []string) error {
return err
}

client, err := sshutil.NewSSHClient(h.Driver)
runner, err := CommandRunner(h)
if err != nil {
return err
}
runner := bootstrapper.NewSSHRunner(client)
return LoadImages(runner, images, constants.ImageCacheDir)
}

Expand Down

0 comments on commit 80e200e

Please sign in to comment.