mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Merge pull request #20948 from cfergeau/typo
machine: usb: Fix 'passtrough' typo
This commit is contained in:
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user