%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/ |
Current File : //lib/python2.7/site-packages/salt/runner.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 Z d d l Z d d l m Z d d l m Z d d l m Z e j e � Z d e j e j e f d � � YZ d e f d � � YZ d S( u# Execute salt convenience routines i ( t absolute_importt print_functiont unicode_literalsN( t mixins( t display_output( t verify_funt RunnerClientc B@ sk e Z d Z d Z d Z d � Z e d � � Z d � Z d � Z d e d � Z d d d e e d � Z RS( u7 The interface used by the :command:`salt-run` CLI tool on the Salt Master It executes :ref:`runner modules <all-salt.runners>` which run on the Salt Master. Importing and using ``RunnerClient`` 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. Salt's :conf_master:`external_auth` can be used to authenticate calls. The eauth user must be authorized to execute runner modules: (``@runner``). Only the :py:meth:`master_call` below supports eauth. u runneru runc C@ s | | _ i | _ d S( N( t optst context( t selfR ( ( s/ /usr/lib/python2.7/site-packages/salt/runner.pyt __init__, s c C@ s� t | d � s� t | d � s9 t j j | j � | _ n y. t j j | j d | j d | j �| _ Wq� t k r� t j j | j d | j �| _ q� Xn | j S( Nu _functionsu utilst utilsR ( t hasattrt saltt loaderR R t runnerR t _functionst AttributeError( R ( ( s/ /usr/lib/python2.7/site-packages/salt/runner.pyt functions0 s % c C@ s9 | j d � } t | j | � t g d d d d d d d g D]'