File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/slack_notify.cpython-310.pyc
Back
o ;jJ � @ s� d Z ddlZddlZddlZddlZddlmZ e� e �ZdZdd� Z dd� Zd d � Zddd�Zdd d�Zddd�Zddd�Z ddd�Z ddd�ZdS )ah 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 � N)�SaltInvocationError�slackc C s t S )zZ Return virtual name of the module. :return: The virtual name of the module. )�__virtualname__� r r �M/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/slack_notify.py�__virtual__ s r c C �( t d d�pt d d�} | std��| S )N� config.getz slack.api_keyz slack:api_keyzNo Slack API key found.�Z__salt__r ��api_keyr r r �_get_api_key'