| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/ |
Upload File : |
o
;jt � @ 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"