%PDF- %PDF-
| Direktori : /proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/cache/ |
| Current File : //proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/cache/localfs.pyo |
�
���^c @@ s d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l
Z
d d l m Z d d l
Z d d l Z e j e � Z i d d 6Z d d � Z d � Z d � Z d
� Z d � Z d � Z d d d
� Z d � Z d � Z d S( u+
Cache data in filesystem.
.. versionadded:: 2016.11.0
The ``localfs`` Minion cache module is the default cache module and does not
require any configuration.
Expiration values can be set in the relevant config file (``/etc/salt/master`` for
the master, ``/etc/salt/cloud`` for Salt Cloud, etc).
i ( t absolute_importt print_functiont unicode_literalsN( t SaltCacheErroru listu list_c C@ s0 | r d | k r | d St j d t j j � S( Nu cachedir( t __opts__t gett saltt syspathst CACHE_DIR( t kwargs( ( s6 /usr/lib/python2.7/site-packages/salt/cache/localfs.pyt
__cachedir s c C@ s i t | � d 6S( Nu cachedir( R
( R ( ( s6 /usr/lib/python2.7/site-packages/salt/cache/localfs.pyt init_kwargs$ s c C@ s d t | � f S( Nu localfs( R
( R ( ( s6 /usr/lib/python2.7/site-packages/salt/cache/localfs.pyt get_storage_id( s c
C@ s? t j j | t j j | � � } y t j | � Wn@ t k
rt } | j t j k ru t d j | | � � � qu n Xt j j | d j | � � } t
j d | � \ } } t j | � yU t
j j j | d � �! } | j t d j | � � Wd QXt
j j j | | � Wn+ t k
r:} t d j | | � � � n Xd S( u&