%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/daemons/flo/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/daemons/flo/dummy.pyo

�
���^c@@sxdZddlmZmZmZddlZddlZddlZ	ej
e�Zdej
jjfd��YZdS(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(tabsolute_importtprint_functiontunicode_literalsNtSaltDummyPublishercB@s~eZdZiejjjd�d6ejjjd�d6ejjjd�d6ejjjd�d6Zd	�Zd
�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.optsuoptsu.salt.var.publishupublishu.salt.lane.manor.stacku
lane_stacku.salt.track.workersuworkerscC@syxr|jjrt|jjj�}tjd|�|j|�}|jjj||jjjt	|j
j���qWdS(NuDummy publisher publishing: %s(tpublishtvaluetpoplefttlogtdebugt
_fill_tmplt
lane_stackttransmittfetchUidByNametnexttworkers(tselftpubtmsg((s:/usr/lib/python2.7/site-packages/salt/daemons/flo/dummy.pytaction(s
cC@sziigd6|dddd6td6dd6td6dd	6d
d6dd
6d6idd6dd6d6}tjd|�|S(uy
        Takes a template and a job and fills the template with
        fake return data associated with the job
        ufun_argsureturnupubujidiuretcodeusuccessu_returnucmdu	test.pingufunusilveruiduloadu
silver_minionujobber50e73ccefd052167c7ujid_retusrcusilver_master_masteru
remote_cmdudsturouteu&Dummy publisher faking return with: %s(u
silver_minionujobber50e73ccefd052167c7ujid_retN(usilver_master_masterNu
remote_cmd(tTruetNoneRR(RRR((s:/usr/lib/python2.7/site-packages/salt/daemons/flo/dummy.pyR	/s(
t__name__t
__module__t__doc__tsalttutilststringutilstto_strtIoinitsRR	(((s:/usr/lib/python2.7/site-packages/salt/daemons/flo/dummy.pyRs	(Rt
__future__RRRtloggingtioflo.base.deedingtioflotsalt.utils.stringutilsRt	getLoggerRRtbasetdeedingtDeedR(((s:/usr/lib/python2.7/site-packages/salt/daemons/flo/dummy.pyt<module>s

Zerion Mini Shell 1.0