%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@s�dZddlmZmZmZddlZddlZddlZddl	m
Z
ddlmZ
dZd�Zd�ZdS(	u
Sudo executor module
i(tabsolute_importtprint_functiontunicode_literalsN(tsix(tshlex_quoteusudocC@s,tjjjd�r(tjd�r(tStS(Nusudou	sudo_user(tsalttutilstpathtwhicht__opts__tgett__virtualname__tFalse(((s7/usr/lib/python2.7/site-packages/salt/executors/sudo.pyt__virtual__s$cC@sHdd|jd�ddddd|jd	�d
|jd�g}|ddkr_t|d<nx*|D]"}|jttj|���qfWx1|D])}|jtdj|||���q�Wtd|dtdt�}|ddkr,t	j
jj|d�d}	|	d}
|	jdd�t
d<n|d}
|dt
d<|
S(u�
    Allow for the calling of execution modules via sudo.

    This module is invoked by the minion if the ``sudo_user`` minion config is
    present.

    Example minion config:

    .. code-block:: yaml

        sudo_user: saltdev

    Once this setting is made, any execution module call done by the minion will be
    run under ``sudo -u <sudo_user> salt-call``.  For example, with the above
    minion config,

    .. code-block:: bash

        salt sudo_minion cmd.run 'cat /etc/sudoers'

    is equivalent to

    .. code-block:: bash

        sudo -u saltdev salt-call cmd.run 'cat /etc/sudoers'

    being run on ``sudo_minion``.
    usudou-uu	sudo_useru	salt-callu--outujsonu
--metadatau-cu
config_diru--ufunu	state.slsustate.highstateustate.applyu
concurrentu{0}={1}ucmd.run_alltuse_vttpython_shelluretcodeiustdoutulocalureturnustderr(u	state.slsustate.highstateustate.apply(R
tTruetappendt
_cmd_quoteRt	text_typetformatt__salt__RRRtjsontloadst__context__(toptstdatatfunctargstkwargstcmdtargtkeytcmd_rettcmd_metatret((s7/usr/lib/python2.7/site-packages/salt/executors/sudo.pytexecutes,

 
'

(t__doc__t
__future__RRRtsalt.utils.jsonRtsalt.utils.patht
salt.syspathstsalt.extRtsalt.ext.six.movesRRRR
R$(((s7/usr/lib/python2.7/site-packages/salt/executors/sudo.pyt<module>s	

Zerion Mini Shell 1.0