Anons79 Mini Shell

Directory : /proc/self/root/lib/python2.7/site-packages/ansible/modules/source_control/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/ansible/modules/source_control/github_issue.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
Z
ddlmZdd
l
mZd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
module: github_issue
short_description: View GitHub issue.
description:
    - View GitHub issue for a given repository and organization.
version_added: "2.4"
options:
  repo:
    description:
      - Name of repository from which issue needs to be retrieved.
    required: true
  organization:
    description:
      - Name of the GitHub organization in which the repository is hosted.
    required: true
  issue:
    description:
      - Issue number for which information is required.
    required: true
  action:
    description:
        - Get various details about issue depending upon action specified.
    default: 'get_status'
    choices:
        - 'get_status'
author:
    - Abhijeet Kasurde (@Akasurde)
su
get_status:
    description: State of the GitHub issue
    type: str
    returned: success
    sample: open, closed
s,
- name: Check if GitHub issue is closed or not
  github_issue:
    organization: ansible
    repo: ansible
    issue: 23642
    action: get_status
  register: r

- name: Take action depending upon issue status
  debug:
    msg: Do something when issue 23642 is open
  when: r.issue_status == 'open'
N(t
AnsibleModule(t	fetch_urlcC`s�tdtdtdt�dtdt�dtdddt�dtd	d
gdd
��dt�}|jd}|jd}|jd}|jd}t�}id
d6dd6}d|||f}t||d|�\}}	d|	dko�dknsJ|	ddkr)|jdd|�n|jdd||	df�ntj|j��}
|d
ksw|dkr�|j
r�|jdt�q�|jdtd|
d�n|j|�dS(Nt
argument_spectorganizationtrequiredtrepotissuettypetinttactiontchoicest
get_statustdefaulttsupports_check_modesapplication/jsonsContent-Typesapplication/vnd.github.v3+jsontAccepts,https://api.github.com/repos/%s/%s/issues/%stheadersi�Ri�i�tmsgsFailed to find issue %ss Failed to send request to %s: %stchangedtissue_statuststate(
RtdicttTruetparamsR	t	fail_jsontjsontloadstreadtNonet
check_modetupdatet	exit_json(tmoduleRR
RRtresultRturltresponsetinfotgh_obj((sO/usr/lib/python2.7/site-packages/ansible/modules/source_control/github_issue.pytmainLs6	



	
 !	t__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtRETURNtEXAMPLESR tansible.module_utils.basicRtansible.module_utils.urlsR	R-t__name__(((sO/usr/lib/python2.7/site-packages/ansible/modules/source_control/github_issue.pyt<module>s

	*

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]