Merge pull request #14844 from shanesmith/fix-qemu-machine-gvproxy-always-fails

Fix qemu machine startHostNetworking always failing
This commit is contained in:
openshift-ci[bot]
2022-07-06 17:39:35 +00:00
committed by GitHub

View File

@ -1217,7 +1217,10 @@ func (v *MachineVM) startHostNetworking() (string, apiForwardingState, error) {
fmt.Println(cmd)
}
_, 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) {