�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
m Z d d l m
Z
d d
l m Z d d l Z d � Z d � Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust networkt supported_bys�
---
module: checkpoint_task_facts
short_description: Get task objects facts on Check Point over Web Services API
description:
- Get task objects facts on Check Point devices.
All operations are performed over Web Services API.
version_added: "2.8"
author: "Ansible by Red Hat (@rcarrillocruz)"
options:
task_id:
description:
- ID of the task object.
type: str
required: True
sc
- name: Get task facts
checkpoint_task_facts:
task_id: 2eec70e5-78a8-4bdb-9a76-cfb5601d0bcb
s[
ansible_facts:
description: The checkpoint task facts.
returned: always.
type: list
( t
AnsibleModule( t
Connection( t HTTPErrorNc C` sd | j d } | rB i | d 6d d 6} | j d | � \ } } n | j d d � \ } } | | f S( Nt task_ids task-idt fulls
details-levels /web_api/show-tasks /web_api/show-tasks( t paramst send_requestt None( t modulet
connectionR t payloadt codet response( ( s] /usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_task_facts.pyt get_taskA s
c C` s� t d t d d � � } t d | � } t | j � } t | | � \ } } | d k rs | j d t d | � � n | j d d j | | � � d S(
NR t typet strt
argument_speci� t
ansible_factst checkpoint_taskst msgs5 Checkpoint device returned error {0} with message {1}( t dictR R t _socket_pathR t exit_jsont fail_jsont format( R R R R R ( ( s] /usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_task_facts.pyt mainO s t __main__( t
__future__R R R R t
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESt RETURNt ansible.module_utils.basicR t ansible.module_utils.connectionR t+ ansible.module_utils.six.moves.urllib.errorR
t jsonR R! t __name__( ( ( s] /usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_task_facts.pyt <module> s
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]