%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/wheel/ |
Current File : //lib/python2.7/site-packages/salt/wheel/__init__.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 Z d d l m Z d e j j j e j j j e f d � � YZ e Z d S( u+ Modules used to control the master itself i ( t absolute_importt print_functiont unicode_literalsN( t sixt WheelClientc B@ sh e Z d Z d Z d Z d d � Z d � Z d � Z d e d � Z d � Z d d d e e d � Z RS( u� An interface to Salt's wheel modules :ref:`Wheel modules <all-salt.wheel>` interact with various parts of the Salt Master. Importing and using ``WheelClient`` must be done on the same machine as the Salt Master and it must be done using the same user that the Salt Master is running as. Unless :conf_master:`external_auth` is configured and the user is authorized to execute wheel functions: (``@wheel``). Usage: .. code-block:: python import salt.config import salt.wheel opts = salt.config.master_config('/etc/salt/master') wheel = salt.wheel.WheelClient(opts) u wheelc C@ s4 | | _ i | _ t j j | d | j �| _ d S( Nt context( t optsR t saltt loadert wheelst functions( t selfR ( ( s7 /usr/lib/python2.7/site-packages/salt/wheel/__init__.pyt __init__/ s c K@ s4 | j | | d | j d t � d | j d t � �S( u) Backwards compatibility t print_eventu print_eventt full_returnu full_return( t lowt gett Truet False( R t funt kwargs( ( s7 /usr/lib/python2.7/site-packages/salt/wheel/__init__.pyt call_func5 s c K@ s� | } d | d <| j d } | d k r2 d } n d j t j j j | � t j | j d � � } t j j j j | j d d d | d d �} z | j | � } Wd | j � Xt | t j � r� d | k r� t j j j | d � q� n | S( uX Execute a wheel function through the master network interface (eauth). u wheelu cmdu interfaceu 0.0.0.0u 127.0.0.1u tcp://{}:{}u ret_portt cryptu cleart master_urit usageu master_callNu error( R t formatR t utilst zeromqt ip_bracketR t text_typet transportt clientt ReqChannelt factoryt sendt closet isinstancet collectionst Mappingt errort raise_error( R R t loadt interfaceR t channelt ret( ( s7 /usr/lib/python2.7/site-packages/salt/wheel/__init__.pyt master_call= s&