HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ifttt.cpython-310.pyc
o

�N�gk�@sdZdd�Zddd�ZdS)a+
Trigger an event in IFTTT
=========================

This state is useful for trigging events in IFTTT.

.. versionadded:: 2015.8.0

.. code-block:: yaml

    ifttt-event:
      ifttt.trigger_event:
        - event: TestEvent
        - value1: 'This state was executed successfully.'
        - value2: 'Another value we can send.'
        - value3: 'A third value we can send.'

The api key can be specified in the master or minion configuration like below:
.. code-block:: yaml

    ifttt:
      secret_key: bzMRb-KKIAaNOwKEEw792J7Eb-B3z7muhdhYblJn4V6

cCsdtvrdSdS)z@
    Only load if the ifttt module is available in __salt__
    �ifttt.trigger_eventZifttt)Fz ifttt module could not be loaded)�__salt__�rr�E/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/ifttt.py�__virtual__srNcCs�|iddd�}tdrd�|�|d<d|d<|Std	||||d
�|d<|r7|dr7d|d<d|��|d<|Sd
|��|d<|S)a�
    Trigger an event in IFTTT

    .. code-block:: yaml

        ifttt-event:
          ifttt.trigger_event:
            - event: TestEvent
            - value1: 'A value that we want to send.'
            - value2: 'A second value that we want to send.'
            - value3: 'A third value that we want to send.'

    The following parameters are required:

    name
        The unique name for this event.

    event
        The name of the event to trigger in IFTTT.

    The following parameters are optional:

    value1
        One of the values that we can send to IFTT.

    value2
        One of the values that we can send to IFTT.

    value3
        One of the values that we can send to IFTT.
    F�)�nameZchanges�result�comment�testz0The following trigger would be sent to IFTTT: {}r	Nrr)�event�value1�value2�value3TzTriggered Event: zFailed to trigger event: )Z__opts__�formatr)rrrr
r�retrrr�
trigger_event$s  �
��r)NNN)�__doc__rrrrrr�<module>s