%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/beacons/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/beacons/proxy_example.pyo

�
���^c@@s�dZddlmZmZddlZddlZddlmZdgZ	dZ
eje�Z
d�Zd�Zd	�ZdS(
uy
Example beacon to use with salt-proxy

.. code-block:: yaml

    beacons:
      proxy_example:
        endpoint: beacon
i(tabsolute_importtunicode_literalsN(tmapu*u
proxy_examplecC@stS(u�
    Trivially let the beacon load for the test example.
    For a production beacon we should probably have some expression here.
    (tTrue(((s>/usr/lib/python2.7/site-packages/salt/beacons/proxy_example.pyt__virtual__scC@s#t|t�stdfStdfS(u+
    Validate the beacon configuration
    u6Configuration for proxy_example beacon must be a list.uValid beacon configuration(t
isinstancetlisttFalseR(tconfig((s>/usr/lib/python2.7/site-packages/salt/beacons/proxy_example.pytvalidate%s
cC@sfi}tt|j|��djtdd|d�}tjjj|dddt	�}|dgS(	u�
    Called several times each second
    https://docs.saltstack.com/en/latest/topics/beacons/#the-beacon-function

    .. code-block:: yaml

        beacons:
          proxy_example:
            - endpoint: beacon
    u{0}{1}uproxyuurluendpointtdecode_typeujsontdecodeudict(
RRtupdatetformatt__opts__tsalttutilsthttptqueryR(Rt_configt
beacon_urltret((s>/usr/lib/python2.7/site-packages/salt/beacons/proxy_example.pytbeacon.s
	(t__doc__t
__future__RRtloggingtsalt.utils.httpRtsalt.ext.six.movesRt__proxyenabled__t__virtualname__t	getLoggert__name__tlogRR	R(((s>/usr/lib/python2.7/site-packages/salt/beacons/proxy_example.pyt<module>
s				

Zerion Mini Shell 1.0