Skip to content

Commit 958caec

Browse files
fix: use TMPDIR for cache directory
Signed-off-by: Mathieu Labourier <[email protected]>
1 parent 2b029ca commit 958caec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/linstorvolumemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
DRBD_BY_RES_PATH = '/dev/drbd/by-res/'
4545

46-
CONTROLLER_CACHE_DIRECTORY = '/dev/shm/linstor'
46+
CONTROLLER_CACHE_DIRECTORY = os.environ.get('TMPDIR', '/tmp') + '/linstor'
4747
CONTROLLER_CACHE_FILE = 'controller_uri'
4848

4949
PLUGIN = 'linstor-manager'

0 commit comments

Comments
 (0)