Skip to content

Commit

Permalink
Change executable to use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
josedonizetti committed Jul 22, 2019
1 parent 52ba92c commit 95c2e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,10 +912,10 @@ func validateDriverVersion(vmDriver string) {

switch vmDriver {
case constants.DriverKvm2:
driverExecutable = "docker-machine-driver-kvm2"
driverExecutable = fmt.Sprintf("docker-machine-driver-%s", constants.DriverKvm2)
driverDocumentation = fmt.Sprintf("%s#%s", constants.DriverDocumentation, "kvm2-upgrade")
case constants.DriverHyperkit:
driverExecutable = "docker-machine-driver-hyperkit"
driverExecutable = fmt.Sprintf("docker-machine-driver-%s", constants.DriverHyperkit)
driverDocumentation = fmt.Sprintf("%s#%s", constants.DriverDocumentation, "hyperkit-upgrade")
default: // driver doesn't support version
return
Expand Down

0 comments on commit 95c2e7c

Please sign in to comment.