mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +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}
|
m := MacMachine{Name: opts.Name}
|
||||||
|
|
||||||
if len(opts.USBs) > 0 {
|
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)
|
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")
|
return nil, errors.New("must define --image-path for hyperv support")
|
||||||
}
|
}
|
||||||
if len(opts.USBs) > 0 {
|
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
|
m.RemoteUsername = opts.Username
|
||||||
|
@ -31,7 +31,7 @@ func VirtualizationProvider() machine.VirtProvider {
|
|||||||
func (p *WSLVirtualization) NewMachine(opts machine.InitOptions) (machine.VM, error) {
|
func (p *WSLVirtualization) NewMachine(opts machine.InitOptions) (machine.VM, error) {
|
||||||
vm := new(MachineVM)
|
vm := new(MachineVM)
|
||||||
if len(opts.USBs) > 0 {
|
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 {
|
if len(opts.Name) > 0 {
|
||||||
vm.Name = opts.Name
|
vm.Name = opts.Name
|
||||||
|
Reference in New Issue
Block a user