%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/utils/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/utils/mount.pyc

�
���^c@@s�dZddlmZmZddlZddlZddlZddlZddl	Zddl
Zeje�Z
d�Zd�Zd�Zd�ZdS(u&
Common functions for managing mounts
i(tabsolute_importtunicode_literalsNcC@sWy8tjjj|d��}tjjj|�SWdQXWnttfk
rRiSXdS(u7
    Reads and returns the contents of a text file
    urbN(tsalttutilstfilestfopentyamlt	safe_loadtOSErrortIOError(tpathtcontents((s4/usr/lib/python2.7/site-packages/salt/utils/mount.pyt
_read_files
cC@stjj|dd�S(u/
    Return the mount cache file location.
    ucachedirumounts(tosR
tjoin(topts((s4/usr/lib/python2.7/site-packages/salt/utils/mount.pyt	get_cachescC@st|�}t|�S(u%
    Write the mount cache file.
    (RR(Rt
cache_file((s4/usr/lib/python2.7/site-packages/salt/utils/mount.pyt
read_cache&scC@s�t|�}yZtjjjtjjj|��}tjjj|d��}|j	|�WdQXt
SWn.ttfk
r�t
jddtj�tSXdS(u%
    Write the mount cache file.
    uwb+NuFailed to cache mountstexc_info_on_loglevel(RRRtstringutilstto_bytesRt	safe_dumpRRtwritetTrueR	RtlogterrortloggingtDEBUGtFalse(tcacheRRt_cachetfp_((s4/usr/lib/python2.7/site-packages/salt/utils/mount.pytwrite_cache.s
(t__doc__t
__future__RRRR
tsalt.utils.filesRtsalt.utils.stringutilstsalt.utils.yamltsalt.utils.versionst	getLoggert__name__RRRRR!(((s4/usr/lib/python2.7/site-packages/salt/utils/mount.pyt<module>s			

Zerion Mini Shell 1.0