Anons79 Mini Shell

Directory : /proc/self/root/lib/python2.7/site-packages/ansible/plugins/callback/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/ansible/plugins/callback/oneline.pyc

�
�Udac@`sbddlmZmZmZeZdZddlmZddl	m
Zdefd��YZdS(i(tabsolute_importtdivisiontprint_functions�
    callback: oneline
    type: stdout
    short_description: oneline Ansible screen output
    version_added: historical
    description:
        - This is the output callback used by the -o/--one-line command line option.
(tCallbackBase(t	constantstCallbackModulecB`sPeZdZdZdZdZd�Zed�Zd�Z	d�Z
d�ZRS(	s�
    This is the default callback interface, which simply prints messages
    to stdout when new callback events are received.
    g@tstdouttonelinecC`s�|jdd�jdd�jdd�}d|kr�|dr�|jdd�jdd�jdd�}d|||jd	d
�||fSd|||jd	d
�|fSdS(NRts
s\ns
s\rtstderrs)%s | %s | rc=%s | (stdout) %s (stderr) %strci����s%s | %s | rc=%s | (stdout) %s(tgettreplace(tselfthostnametresulttcaptionRR	((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/oneline.pyt_command_generic_msg!s
**#cC`s0d|jkr�|jjdkrN|jdj�jd�d}d|}nd|jdjdd�}|jjtj	kr�d|jkr�|jj
|j|jj
�|jd	�d
tj�q�|jj
|d
tj�n|jj
d|jj
�|j|jdd
�jdd�fd
tj�dS(Nt	exceptionis
i����scAn exception occurred during task execution. To see the full traceback, use -vvv. The error was: %ssDAn exception occurred during task execution. The full traceback is:
Rt
module_stderrtFAILEDtcolors%s | FAILED! => %stindenti(t_resultt_displayt	verbositytstriptsplitRt_tasktactiontCtMODULE_NO_JSONtdisplayRt_hosttget_nametCOLOR_ERRORt
_dump_results(R
Rt
ignore_errorsterrortmsg((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/oneline.pytv2_runner_on_failed)s 
$7@c	C`s�|jjdt�r'tj}d}ntj}d}|jjtjkr�d|jkr�|j	j
|j|jj
�|j|�d|�nJ|j	j
d|jj
�||j|jdd�jd	d
�fd|�dS(NtchangedtCHANGEDtSUCCESStansible_job_idRs
%s | %s => %sRis
R(RRtFalseRt
COLOR_CHANGEDtCOLOR_OKRRRRR RR!R"R$R(R
RRtstate((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/oneline.pytv2_runner_on_ok:s			$4CcC`s?|jjd|jj�|jjdd�fdtj�dS(Ns%s | UNREACHABLE!: %sR'RR(RR R!R"RRRtCOLOR_UNREACHABLE(R
R((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/oneline.pytv2_runner_on_unreachableIscC`s*|jjd|jj�dtj�dS(Ns%s | SKIPPEDR(RR R!R"Rt
COLOR_SKIP(R
R((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/oneline.pytv2_runner_on_skippedLs(t__name__t
__module__t__doc__tCALLBACK_VERSIONt
CALLBACK_TYPEt
CALLBACK_NAMERR-R(R1R3R5(((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/oneline.pyRs			N(
t
__future__RRRttypet
__metaclass__t
DOCUMENTATIONtansible.plugins.callbackRtansibleRRR(((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/oneline.pyt<module>s
	

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