Merge pull request #20948 from cfergeau/typo

machine: usb: Fix 'passtrough' typo
This commit is contained in:
openshift-merge-bot[bot]
2023-12-08 13:06:43 +00:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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

View File

@ -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