%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/beacons/ |
| Current File : //proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/beacons/twilio_txt_msg.pyc |
�
���^c @@ s d Z d d l m Z m Z d d l Z d d l m Z d d l m Z ym d d l Z e
g e j D] Z e
e � ^ qd � Z e d
k r� d d l m Z n d d l m Z e Z Wn e k
r� e Z n Xe j e � Z d Z d
� Z d � Z d � Z d S( u%
Beacon to emit Twilio text messages
i ( t absolute_importt unicode_literalsN( t six( t mapi ( t Client( t TwilioRestClientu twilio_txt_msgc C@ s t r
t St Sd S( N( t
HAS_TWILIOt __virtualname__t False( ( ( s? /usr/lib/python2.7/site-packages/salt/beacons/twilio_txt_msg.pyt __virtual__ s c @ se t | t � s t d f Si � t t � j | � � t � f d � d D� � s[ t d f St d f S( u+
Validate the beacon configuration
u7 Configuration for twilio_txt_msg beacon must be a list.c 3@ s | ] } | � k Vq d S( N( ( t .0t x( t _config( s? /usr/lib/python2.7/site-packages/salt/beacons/twilio_txt_msg.pys <genexpr>3 s u account_sidu
auth_tokenu
twilio_numberue Configuration for twilio_txt_msg beacon must contain account_sid, auth_token and twilio_number items.u Valid beacon configuration( u account_sidu
auth_tokenu
twilio_number( t
isinstancet listR R t updatet allt True( t config( ( R s? /usr/lib/python2.7/site-packages/salt/beacons/twilio_txt_msg.pyt validate'