Skip to content

Commit

Permalink
Merge pull request #11437 from MichaelAnckaert/fix-11418
Browse files Browse the repository at this point in the history
[NO TESTS NEEDED] Fix #11418 - Default TMPDIR to /tmp on OS X
  • Loading branch information
openshift-merge-robot committed Sep 7, 2021
2 parents 30d0cc3 + e151f4c commit c9646b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/machine/qemu/options_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ package qemu

import (
"os"

"github.com/pkg/errors"
)

func getRuntimeDir() (string, error) {
tmpDir, ok := os.LookupEnv("TMPDIR")
if !ok {
return "", errors.New("unable to resolve TMPDIR")
tmpDir = "/tmp"
}
return tmpDir, nil
}

0 comments on commit c9646b5

Please sign in to comment.