File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/msteams.cpython-310.pyc
o
�N�gt � @ sL d Z ddlZddlZddlmZ e�e�ZdZ dd� Z
dd� Zdd d
�ZdS )aU
Module for sending messages to MS Teams
.. versionadded:: 2017.7.0
:configuration: This module can be used by either passing a hook_url
directly or by specifying it in a configuration profile in the salt
master/minion config. For example:
.. code-block:: yaml
msteams:
hook_url: https://outlook.office.com/webhook/837
� N)�SaltInvocationErrorZmsteamsc C s t S )zY
Return virtual name of the module.
:return: The virtual name of the module.
)�__virtualname__� r r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/msteams.py�__virtual__ s r c C s( t d d�pt d d�} | std��| S )zK
Return hook_url from minion/master config file
or from pillar
z
config.getzmsteams.hook_urlzmsteams:hook_urlzNo MS Teams hook_url found.)Z__salt__r )�hook_urlr r r �
_get_hook_url"