File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/pushover.cpython-310.pyc
Back
o ;jh � @ s. d Z dd� Z ddd�ZdS )a� Send a message to PushOver ========================== This state is useful for sending messages to PushOver during state runs. .. versionadded:: 2015.5.0 .. code-block:: yaml pushover-message: pushover.post_message: - user: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - title: Salt Returner - device: phone - priority: -1 - expire: 3600 - retry: 5 - message: 'This state was executed successfully.' The api key can be specified in the master or minion configuration like below: .. code-block:: yaml pushover: token: peWcBiMOS9HrZG15peWcBiMOS9HrZG15 c C s dt v rdS dS )zC Only load if the pushover module is available in __salt__ �pushover.post_messageZpushover)Fz#pushover module could not be loaded)�__salt__� r r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/pushover.py�__virtual__ s r N� c C s� | i ddd�}t d rd�|�|d<