File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ifttt.cpython-310.pyc
o
�N�gk � @ s d Z dd� 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
c C s dt v rdS dS )z@
Only load if the ifttt module is available in __salt__
�ifttt.trigger_eventZifttt)Fz ifttt module could not be loaded)�__salt__� r r �E/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/ifttt.py�__virtual__ s r Nc C s� | i ddd�}t d rd�|�|d<