mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
Fix qemu machine startHostNetworking always failing
Issue introduced in #14828 [NO NEW TESTS NEEDED] Signed-off-by: Shane Smith <shane.smith@shopify.com>
This commit is contained in:
@ -1217,7 +1217,10 @@ func (v *MachineVM) startHostNetworking() (string, apiForwardingState, error) {
|
|||||||
fmt.Println(cmd)
|
fmt.Println(cmd)
|
||||||
}
|
}
|
||||||
_, err = os.StartProcess(cmd[0], cmd, attr)
|
_, err = os.StartProcess(cmd[0], cmd, attr)
|
||||||
return forwardSock, state, fmt.Errorf("unable to execute: %q: %w", cmd, err)
|
if err != nil {
|
||||||
|
return "", 0, fmt.Errorf("unable to execute: %q: %w", cmd, err)
|
||||||
|
}
|
||||||
|
return forwardSock, state, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *MachineVM) setupAPIForwarding(cmd []string) ([]string, string, apiForwardingState) {
|
func (v *MachineVM) setupAPIForwarding(cmd []string) ([]string, string, apiForwardingState) {
|
||||||
|
Reference in New Issue
Block a user