mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Default to CACHE_DIR in syspaths
This commit is contained in:
parent
380abd3744
commit
ff734fe93b
3
salt/cache/__init__.py
vendored
3
salt/cache/__init__.py
vendored
@ -11,6 +11,7 @@ import time
|
||||
|
||||
# Import Salt lobs
|
||||
import salt.loader
|
||||
import salt.syspaths
|
||||
from salt.payload import Serial
|
||||
|
||||
|
||||
@ -50,7 +51,7 @@ class Cache(object):
|
||||
def __init__(self, opts, cachedir=None):
|
||||
self.opts = opts
|
||||
if cachedir is None:
|
||||
self.cachedir = opts['cachedir']
|
||||
self.cachedir = opts.get('cachedir', salt.syspaths.CACHE_DIR)
|
||||
else:
|
||||
self.cachedir = cachedir
|
||||
self.driver = opts['cache']
|
||||
|
Loading…
Reference in New Issue
Block a user