Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/notification/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/notification/logentries_msg.pyo

�
�Udac@`s�ddlmZmZmZeZidgd6dd6dd6ZdZd	Zd
Z	ddl
Z
ddlmZd
�Z
d�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functiontpreviewtstatust	communitytsupported_bys1.1tmetadata_versions

---
module: logentries_msg
version_added: "2.5"
short_description: Send a message to logentries.
description:
   - Send a message to logentries
requirements:
  - "python >= 2.6"
options:
  token:
    description:
      - Log token.
    required: true
  msg:
    description:
      - The message body.
    required: true
  api:
    description:
      - API endpoint
    default: data.logentries.com
  port:
    description:
      - API endpoint port
    default: 80
author: "Jimmy Tang (@jcftang) <[email protected]>"
s# sc
- logentries_msg:
    token=00000000-0000-0000-0000-000000000000
    msg="{{ ansible_hostname }}"
N(t
AnsibleModulec	C`s�dj||�}tj|�}tjtjtj�}|j||f�y|jsh|j|�nWn'tk
r�}|j	dd|�nX|j
�dS(Ns{0} {1}
tmsgsfailed to send message, msg=%s(tformattsockett
gethostbynametAF_INETtSOCK_STREAMtconnectt
check_modetsendt	Exceptiont	fail_jsontclose(	tmodulettokenR	tapitporttmessagetapi_iptste((sO/usr/lib/python2.7/site-packages/ansible/modules/notification/logentries_msg.pytsend_msg9s	cC`stdtdtdddtdt�dtdddt�dtddd	d
�dtddd	d
��dt�}|jd}|jd}|jd}|jd}t}y t|||||�t}Wn'tk
r�}|jdd|�nX|jd|d|�dS(Nt
argument_specRttypetstrtrequiredtno_logR	Rtdefaultsdata.logentries.comRtintiPtsupports_check_modesunable to send msg: %stchanged(	RtdicttTruetparamstFalseRRRt	exit_json(RRR	RRR&R((sO/usr/lib/python2.7/site-packages/ansible/modules/notification/logentries_msg.pytmainIs$	




t__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtRETURNtEXAMPLESRtansible.module_utils.basicRRR,t__name__(((sO/usr/lib/python2.7/site-packages/ansible/modules/notification/logentries_msg.pyt<module>s

		

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