%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@scdZddlmZmZmZddlZddlmZdd
�Zd�Z	e
d�ZdS(uc
Functions to perform introspection on a minion, and return data in a format
usable by Salt States
i(tabsolute_importtprint_functiontunicode_literalsN(tsixu/devu/homeu/mediau/procu/runu/sys/u/tmpu/varc
C@s!i}dtkrd|d<ndtkr8d|d<n|rIi|d6Si}td�}td�}x�|D]�}t}x&|D]}|j|�r�t}q�q�W|r�qpntj|tj�s�qpnxJ|D]B}|||kr�td|�}	ttj	|	��||<q�q�WqpW|S(	uk
    Determine which packages own the currently running services. By default,
    excludes files whose full path starts with ``/dev``, ``/home``, ``/media``,
    ``/proc``, ``/run``, ``/sys``, ``/tmp`` and ``/var``. This can be
    overridden by passing in a new list to ``exclude``.

    CLI Example:

        salt myminion introspect.running_service_owners
    u	pkg.owneruqThe module for the package manager on this system does not support looking up which package(s) owns which file(s)uUnsupported Package Managerufile.open_filesuSThe file module on this system does not support looking up open files on the systemuUnsupported File ModuleuErroru
service.execs(
t__salt__tFalset
startswithtTruetostaccesstX_OKtnextRt
itervalues(
texcludeterrortrett
open_filestexecstpathtignoretbad_dirtservicetpkg((s;/usr/lib/python2.7/site-packages/salt/modules/introspect.pytrunning_service_ownerss0







$cC@s�i}dtkrd|d<ndtkr8d|d<n|rIi|d6Si}td�}xg|D]_}td|�}d	|kr�qcn|d	d
}td|�}ttj|��||<qcW|S(u�
    Return which packages own each of the services that are currently enabled.

    CLI Example:

        salt myminion introspect.enabled_service_owners
    u	pkg.owneruqThe module for the package manager on this system does not support looking up which package(s) owns which file(s)uUnsupported Package Manageruservice.showucThe module for the service manager on this system does not support showing descriptive service datauUnsupported Service ManageruErroruservice.get_enabledu	ExecStartupath(RRRR(RRtservicesRtdatat	start_cmdR((s;/usr/lib/python2.7/site-packages/salt/modules/introspect.pytenabled_service_ownersEs"



cC@sSi}t�}xR|D]J}idgd6||<|r||djii||d6d6�qqWt�}x�|D]�}||kr�||djitd6�niitd6gd6||<|rtt}xI||dD]9}t|t�r�ttj	|��dkr�t}q�q�W|sK||djii||d6d6�qKqtqtW|S(u�
    Return running and enabled services in a highstate structure. By default
    also returns package dependencies for those services, which means that
    package definitions must be created outside this function. To drop the
    package dependencies, set ``requires`` to False.

    CLI Example:

        salt myminion introspect.service_highstate
        salt myminion introspect.service_highstate requires=False
    urunninguserviceupkgurequireuenabled(
RtappendRRRt
isinstancetdictRRtiterkeys(trequiresRtrunningRtenabledtexiststitem((s;/usr/lib/python2.7/site-packages/salt/modules/introspect.pytservice_highstateks*	
 	
*
#(u/devu/homeu/mediau/procu/runu/sys/u/tmpu/var(t__doc__t
__future__RRRRtsalt.extRRRRR%(((s;/usr/lib/python2.7/site-packages/salt/modules/introspect.pyt<module>s4	&

Zerion Mini Shell 1.0