diff options
Diffstat (limited to 'pkg/machine')
-rw-r--r-- | pkg/machine/qemu/machine.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 284ea1d7f..646c84aba 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -608,7 +608,7 @@ func (v *MachineVM) startHostNetworking() error { // MacOS does not have /usr/libexec so we look in the executable // paths. binary, err := exec.LookPath(machine.ForwarderBinaryName) - if errors.Cause(err) == exec.ErrNotFound { + if errors.Is(err, exec.ErrNotFound) { // Nothing was found, so now check /usr/libexec, else error out binary = filepath.Join("/usr/libexec/podman/", machine.ForwarderBinaryName) if _, err := os.Stat(binary); err != nil { |