File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/jira_mod.cpython-310.pyc
Back
o ;jG � @ s� d Z ddlZddlZzddlZdZW n ey dZY nw e�e�Z dZ dgZdadd� Z dd d �Zddd�Z ddd�Zddd�Z ddd�Zddd�ZdS )aG JIRA Execution module ===================== .. versionadded:: 2019.2.0 Execution module to manipulate JIRA tickets via Salt. This module requires the ``jira`` Python library to be installed. Configuration example: .. code-block:: yaml jira: server: https://jira.atlassian.org username: salt password: pass � NTF�jira�*c C s t rtS dS )N)Fz0Please install the jira Python library from PyPI)�HAS_JIRA�__virtualname__� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/jira_mod.py�__virtual__( s ���r c C sD t d di d�}| s|�d�} |s|�d�}|s|�d�}| ||fS )zN Returns the credentials merged with the config data (opts + pillar). zconfig.merger )�default�server�username�password)�__salt__�get)r r r Zjira_cfgr r r �_get_credentials0 s r c C s0 t st| ||d�\} }}tj ||f| dd�a t S )N�r r r T)Z basic_authr �logging)�JIRAr r r r r r � _get_jira>