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
commit 13070dc186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

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