Skip to content

Commit 275925c

Browse files
cfergeaupraveenkumar
authored andcommitted
vfkit: Remove unused NewHost parameter
Since the vfkit machine driver is not an external driver, we don't need to pass BinDir() to NewHost(). This is similar to what is done for the hyperv driver in pkg/crc/machine/driver_windows.go
1 parent 7b04899 commit 275925c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/crc/machine/driver_darwin.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"errors"
66

7-
"github.com/crc-org/crc/pkg/crc/constants"
87
"github.com/crc-org/crc/pkg/crc/logging"
98
"github.com/crc-org/crc/pkg/crc/machine/config"
109
"github.com/crc-org/crc/pkg/crc/machine/vfkit"
@@ -19,7 +18,7 @@ func newHost(api libmachine.API, machineConfig config.MachineConfig) (*host.Host
1918
if err != nil {
2019
return nil, errors.New("Failed to marshal driver options")
2120
}
22-
return api.NewHost("vf", constants.BinDir(), json)
21+
return api.NewHost("vf", "", json)
2322
}
2423

2524
func loadDriverConfig(host *host.Host) (*machineVf.Driver, error) {

0 commit comments

Comments
 (0)