diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-07-06 17:39:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-06 17:39:35 +0000 |
commit | 13070dc186d4083aa2b4f55781cd79ea6d577022 (patch) | |
tree | 25d6c89d7a99f8dc70771511dbc86d55e5e7be76 | |
parent | ca5bebb0825a738ee04c073646696906db95c97c (diff) | |
parent | a5898129cfb88a0600f1f565fed1022ada25fdb0 (diff) | |
download | podman-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.go | 5 |
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) { |