%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/modules/ |
Current File : //lib/python2.7/site-packages/salt/modules/hipchat.pyc |
� ���^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 Z e j e � Z d Z d � Z d d d d d d d � Z d d d d � Z d d d d � Z d d d d � Z d d d d � Z d d d d e d � Z d S( u� Module for sending messages to hipchat. .. 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. It is possible to use a different API than http://api.hipchat.com, by specifying the API URL in config as api_url, or by passing the value directly. For example: .. code-block:: yaml hipchat: api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15 api_version: v1 Custom API Example: .. code-block:: yaml hipchat: api_url: http://api.hipchat.myteam.com api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15 api_version: v2 i ( t absolute_importt print_functiont unicode_literalsN( t urljoin( t urlencode( t rangeu hipchatc C@ s t S( uZ Return virtual name of the module. :return: The virtual name of the module. ( t __virtualname__( ( ( s8 /usr/lib/python2.7/site-packages/salt/modules/hipchat.pyt __virtual__5 s u GETc C@ s� i } i } | sU y# t d d � } | j d � } WqU t t t f k rQ qU Xn | sc | r� yD t d d � } | s� | j d � } n | s� | j d � } n Wq� t t t f k r� t j d � t SXn | r� d j | � } n d } i i i d d 6d d 6d 6i d d 6d d 6d 6i d d 6d d 6d 6d 6i i d d 6d d 6d 6i d d 6d d 6d 6i | d 6d- d 6d 6d 6} d } | r�| } n t | | d � } | j | � j | � j d � } t | | t � } | d k rPd | d <| | d <| d k rd | d <n | r�| j d d- � r>d | d <n t | � } q�nj | d k r�d! j | � | d"