Skip to content

Commit ab321ab

Browse files
committed
Fix the default Podman integration socket base directory
Fixes: #336 Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: SAP <tobias.wolf@sap.com>
1 parent 80bcd46 commit ab321ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gardenlinux/oci/podman_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import logging
88
from contextlib import ExitStack
99
from functools import wraps
10-
from os import rmdir
10+
from os import environ, rmdir
1111
from pathlib import Path
1212
from subprocess import PIPE, STDOUT, Popen
1313
from tempfile import mkdtemp
@@ -59,7 +59,7 @@ def __enter__(self) -> Any:
5959
:since: 1.0.0
6060
"""
6161

62-
self._tmpdir = mkdtemp()
62+
self._tmpdir = mkdtemp(dir=environ.get("HOME"))
6363

6464
podman_sock = str(Path(self._tmpdir, "podman.sock").absolute())
6565

0 commit comments

Comments
 (0)