From 6c2a0196a962560b465ec984145b73b1f0d27df3 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 8 Dec 2023 10:38:08 +0100 Subject: [PATCH] machine: usb: Fix 'passtrough' typo [NO NEW TESTS NEEDED] Signed-off-by: Christophe Fergeau --- pkg/machine/applehv/config.go | 2 +- pkg/machine/hyperv/config.go | 2 +- pkg/machine/wsl/config.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/machine/applehv/config.go b/pkg/machine/applehv/config.go index 6c22bc8c44..c04b43e22a 100644 --- a/pkg/machine/applehv/config.go +++ b/pkg/machine/applehv/config.go @@ -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) diff --git a/pkg/machine/hyperv/config.go b/pkg/machine/hyperv/config.go index eafca54e66..af4e47ccda 100644 --- a/pkg/machine/hyperv/config.go +++ b/pkg/machine/hyperv/config.go @@ -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 diff --git a/pkg/machine/wsl/config.go b/pkg/machine/wsl/config.go index d46a0959f1..0ee2e77673 100644 --- a/pkg/machine/wsl/config.go +++ b/pkg/machine/wsl/config.go @@ -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