Skip to content

Commit

Permalink
machine: usb: Fix 'passtrough' typo
Browse files Browse the repository at this point in the history
[NO NEW TESTS NEEDED]

Signed-off-by: Christophe Fergeau <[email protected]>
  • Loading branch information
cfergeau committed Dec 8, 2023
1 parent deab493 commit 6c2a019
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/machine/applehv/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (v AppleHVVirtualization) NewMachine(opts machine.InitOptions) (machine.VM,
m := MacMachine{Name: opts.Name}

if len(opts.USBs) > 0 {
return nil, fmt.Errorf("USB host passtrough not supported for applehv machines")
return nil, fmt.Errorf("USB host passthrough is not supported for applehv machines")
}

configDir, err := machine.GetConfDir(machine.AppleHvVirt)
Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/hyperv/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (v HyperVVirtualization) NewMachine(opts machine.InitOptions) (machine.VM,
return nil, errors.New("must define --image-path for hyperv support")
}
if len(opts.USBs) > 0 {
return nil, fmt.Errorf("USB host passtrough not supported for hyperv machines")
return nil, fmt.Errorf("USB host passthrough is not supported for hyperv machines")
}

m.RemoteUsername = opts.Username
Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/wsl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func VirtualizationProvider() machine.VirtProvider {
func (p *WSLVirtualization) NewMachine(opts machine.InitOptions) (machine.VM, error) {
vm := new(MachineVM)
if len(opts.USBs) > 0 {
return nil, fmt.Errorf("USB host passtrough not supported for WSL machines")
return nil, fmt.Errorf("USB host passthrough is not supported for WSL machines")
}
if len(opts.Name) > 0 {
vm.Name = opts.Name
Expand Down

0 comments on commit 6c2a019

Please sign in to comment.