%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/daemons/flo/ |
Current File : //lib/python2.7/site-packages/salt/daemons/flo/dummy.pyo |
� ���^c @@ sx d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z e j e � Z d e j j j f d � � YZ d S( uW The dummy publisher for the Salt Master Contains functionality to short-circuit a salt-master's publish functionality so that instead of publications being sent across the wire, they are instead transparently redirected to a returner. Designed for use primarily in load-testing the salt-master without the need for a swarm of real minions. i ( t absolute_importt print_functiont unicode_literalsNt SaltDummyPublisherc B@ s~ e Z d Z i e j j j d � d 6e j j j d � d 6e j j j d � d 6e j j j d � d 6Z d � Z d � Z RS( u� A dummy publisher that transparently redirects publications to a translation system to have them mocked up and sent back into a router u .salt.optsu optsu .salt.var.publishu publishu .salt.lane.manor.stacku lane_stacku .salt.track.workersu workersc C@ sy xr | j j rt | j j j � } t j d | � | j | � } | j j j | | j j j t | j j � � � q Wd S( Nu Dummy publisher publishing: %s( t publisht valuet popleftt logt debugt _fill_tmplt lane_stackt transmitt fetchUidByNamet nextt workers( t selft pubt msg( ( s: /usr/lib/python2.7/site-packages/salt/daemons/flo/dummy.pyt action( s c C@ sz i i g d 6| d d d d 6t d 6d d 6t d 6d d 6d d 6d d 6d 6i d d 6d d 6d 6} t j d | � | S( uy Takes a template and a job and fills the template with fake return data associated with the job u fun_argsu returnu pubu jidi u retcodeu successu _returnu cmdu test.pingu funu silveru idu loadu silver_minionu jobber50e73ccefd052167c7u jid_retu srcu silver_master_masteru remote_cmdu dstu routeu&