File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/twilio_notify.cpython-310.pyc
Back
o ;j� � @ s� d Z ddlZdZz3ddlZedd� ejD ��Zedkr*dZddlm Z ddlmZ nd Zdd lmZ ddlm Z d ZW n e yD Y nw e�e�ZdZd d� Zdd� Zdd� ZdS )ab Module for notifications via Twilio .. versionadded:: 2014.7.0 :depends: - twilio python module :configuration: Configure this module by specifying the name of a configuration profile in the minion config, minion pillar, or master config (with :conf_master:`pillar_opts` set to True). .. warning: Setting pillar_opts to True in the master config may be considered unsafe as it copies the master config to pillar For example: .. code-block:: yaml my-twilio-account: twilio.account_sid: AC32a3c83990934481addd5ce1659f04d2 twilio.auth_token: mytoken � NFc c s � | ]}t |�V qd S )N)�int)�.0�x� r �N/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/twilio_notify.py� <genexpr> s � r )� )�Client)�TwilioExceptionT)�TwilioRestException)�TwilioRestClient�twilioc C s t rtS dS )zF Only load this module if twilio is installed on this minion. )Fz^The twilio_notify execution module failed to load: the twilio python library is not installed.)�HAS_LIBS�__virtualname__r r r r �__virtual__0 s r c C s&