summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-07-06 17:39:35 +0000
committerGitHub <noreply@github.com>2022-07-06 17:39:35 +0000
commit13070dc186d4083aa2b4f55781cd79ea6d577022 (patch)
tree25d6c89d7a99f8dc70771511dbc86d55e5e7be76
parentca5bebb0825a738ee04c073646696906db95c97c (diff)
parenta5898129cfb88a0600f1f565fed1022ada25fdb0 (diff)
downloadpodman-13070dc186d4083aa2b4f55781cd79ea6d577022.tar.gz
podman-13070dc186d4083aa2b4f55781cd79ea6d577022.tar.bz2
podman-13070dc186d4083aa2b4f55781cd79ea6d577022.zip
Merge pull request #14844 from shanesmith/fix-qemu-machine-gvproxy-always-fails
Fix qemu machine startHostNetworking always failing
-rw-r--r--pkg/machine/qemu/machine.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 879ed5109..ca7947e34 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -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) {