%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/states/loop.pyc

�
���^c@@stdZddlmZmZmZddlZddlZeje�Z	dZ
d�Zdddddd�Z
dS(u�
Loop state

Allows for looping over execution modules.

.. versionadded:: 2017.7.0

.. code-block:: yaml

    wait_for_service_to_be_healthy:
      loop.until:
        - name: boto_elb.get_instance_health
        - condition: m_ret[0]['state'] == 'InService'
        - period: 5
        - timeout: 20
        - m_args:
          - {{ elb }}
        - m_kwargs:
            keyid: {{ access_key }}
            key: {{ secret_key }}
            instances: "{{ instance }}"

.. warning::

    This state allows arbitrary python code to be executed through the condition
    parameter which is literally evaluated within the state. Please use caution.

i(tabsolute_importtprint_functiontunicode_literalsNuloopcC@stS(N(tTrue(((s4/usr/lib/python2.7/site-packages/salt/states/loop.pyt__virtual__+si�:	c	@sWi|d6id6td6dd6}|tkrEdj|�|d<|S|dkr_d|d<|St|t�s|d|d<|St�t�s�d	|d<|Std
r�dj|�|d<d|d<|S�fd�}tj���xZ|�s?t|||�}t|�r/t	|d<d
j|�|d<|Stj
|�q�Wdj|�|d<|S(u
    Loop over an execution module until a condition is met.

    name
        The name of the execution module

    m_args
        The execution module's positional arguments

    m_kwargs
        The execution module's keyword arguments

    condition
        The condition which must be met for the loop to break. This
        should contain ``m_ret`` which is the return from the execution
        module.

    period
        The number of seconds to wait between executions

    timeout
        The timeout in seconds
    unameuchangesuresultuucommentuCannot find module {0}u#An exit condition must be specifiedu1Period must be specified as an integer in secondsu2Timeout must be specified as an integer in secondsutestu$The execution module {0} will be runc@stj��krtStS(N(ttimeRtFalse((ttimeout(s4/usr/lib/python2.7/site-packages/salt/states/loop.pyt	timed_outbsuCondition {0} was metu)Timed out while waiting for condition {0}N(Rt__salt__tformattNonet
isinstancetintt__opts__RtevalRtsleep(	tnametm_argstm_kwargst	conditiontperiodRtretRtm_ret((Rs4/usr/lib/python2.7/site-packages/salt/states/loop.pytuntil/s>







(t__doc__t
__future__RRRtloggingRt	getLoggert__name__tlogt__virtualname__RRR(((s4/usr/lib/python2.7/site-packages/salt/states/loop.pyt<module>s	

Zerion Mini Shell 1.0