diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-05-12 21:49:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 21:49:19 +0000 |
commit | 9cf38a0afbb2619b6eeacce7fade451b38e5bab6 (patch) | |
tree | 15766c4d9f6f5ba6509f85844ee915ac33956439 /pkg | |
parent | 86314850511af5ab485a49eff9ab02c71736eb47 (diff) | |
parent | 7804f4d2915449ff3f1f8ef2aade1118dd145c69 (diff) | |
download | podman-9cf38a0afbb2619b6eeacce7fade451b38e5bab6.tar.gz podman-9cf38a0afbb2619b6eeacce7fade451b38e5bab6.tar.bz2 podman-9cf38a0afbb2619b6eeacce7fade451b38e5bab6.zip |
Merge pull request #14206 from n1hility/win-machine-events
Add support for machine events on Windows
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/util/utils_windows.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkg/util/utils_windows.go b/pkg/util/utils_windows.go index 2732124f2..b91680f7a 100644 --- a/pkg/util/utils_windows.go +++ b/pkg/util/utils_windows.go @@ -4,6 +4,9 @@ package util import ( + "path/filepath" + + "github.com/containers/storage/pkg/homedir" "github.com/pkg/errors" ) @@ -34,7 +37,12 @@ func GetRootlessPauseProcessPidPathGivenDir(unused string) (string, error) { // GetRuntimeDir returns the runtime directory func GetRuntimeDir() (string, error) { - return "", errors.New("this function is not implemented for windows") + data, err := homedir.GetDataHome() + if err != nil { + return "", err + } + runtimeDir := filepath.Join(data, "containers", "podman") + return runtimeDir, nil } // GetRootlessConfigHomeDir returns the config home directory when running as non root |