%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/modules/ |
| Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/modules/slack_notify.pyo |
�
���^c @@ s# d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l m
Z
d d l m Z
d d l m Z d d l m Z d d l Z e j e � Z d Z d � Z d
� Z d � Z d d � Z d d
� Z d d � Z d d � Z d d d � Z d d e d d d d d � Z! d S( uh
Module for sending messages to Slack
.. versionadded:: 2015.5.0
:configuration: This module can be used by either passing an api key and version
directly or by specifying both in a configuration profile in the salt
master/minion config.
For example:
.. code-block:: yaml
slack:
api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15
i ( t absolute_importt unicode_literalst print_functionN( t SaltInvocationError( t urlencode( t urljoin( t rangeu slackc C@ s t S( uZ
Return virtual name of the module.
:return: The virtual name of the module.
( t __virtualname__( ( ( s= /usr/lib/python2.7/site-packages/salt/modules/slack_notify.pyt __virtual__) s c C@ s9 t d d � p t d d � } | s5 t d � � n | S( Nu
config.getu
slack.api_keyu
slack:api_keyu No Slack API key found.( t __salt__R ( t api_key( ( s= /usr/lib/python2.7/site-packages/salt/modules/slack_notify.pyt _get_api_key2 s
c C@ s9 t d d � p t d d � } | s5 t d � � n | S( Nu
config.getu
slack.hooku
slack:hooku No Slack WebHook url found( R R ( t url( ( s= /usr/lib/python2.7/site-packages/salt/modules/slack_notify.pyt _get_hook_id<