%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/event.pyc |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d e e e e d � Z
d d � Z e j j
j e
d � Z e j j
j e
d � Z d S( u;
Send events through Salt's event system during state runs
i ( t absolute_importt print_functiont unicode_literalsNc
K@ s� i | d 6i d 6t d 6d d 6} | rC i | d 6| d 6| d <n
i | d <t d ro d | d <d | d <| St d
| d | d | d
| d | d | | �| d <d | d <| S( u�
Send an event to the Salt Master
.. versionadded:: 2014.7.0
Accepts the same arguments as the :py:func:`event.send
<salt.modules.event.send>` execution module of the same name,
with the additional argument:
:param show_changed: If ``True``, state will show as changed with the data
argument as the change value. If ``False``, shows as unchanged.
Example:
.. code-block:: yaml
# ...snip bunch of states above
mycompany/mystaterun/status/update:
event.send:
- data:
status: "Half-way through the state run!"
# ...snip bunch of states below
u nameu changesu resultu u commentu tagu datau testu Event would have been firedu
event.sendt datat preloadt with_envt with_grainst with_pillaru Event firedN( t Falset __opts__t Nonet __salt__( t nameR R R R R t show_changedt kwargst ret( ( s5 /usr/lib/python2.7/site-packages/salt/states/event.pyt send
s"