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/yaml.pyo

�
�Udac@`s�ddlmZmZmZeZdZddlZddlZddl	Z	ddl
Z
ddlZddlm
Z
mZddlmZddlmZddlmZmZmZddlmZd	�Zdd
�Zdefd��YZdS(
i(tabsolute_importtdivisiontprint_functionsf
    callback: yaml
    type: stdout
    short_description: yaml-ized Ansible screen output
    version_added: 2.5
    description:
        - Ansible output that can be quite a bit easier to read than the
          default JSON formatting.
    extends_documentation_fragment:
      - default_callback
    requirements:
      - set as stdout in configuration
N(tto_bytestto_text(tstring_types(t
AnsibleDumper(tCallbackBasetstrip_internal_keystmodule_response_deepcopy(tCallbackModulecC`s%xdD]}||krtSqWtS(s0Returns true if string should be in block formatu


…

(tTruetFalse(tvaluetc((sA/usr/lib/python2.7/site-packages/ansible/plugins/callback/yaml.pytshould_use_block$s
cC`s�|dkr�t|�r|d}|j�}djd�|D��}|j�}tjdd|�}tjdd|�}q�|j}ntj	j
||d|�}|jdk	r�||j|j<n|S(	s'Uses block style for multi-line stringst|tcs`s$|]}|tjkr|VqdS(N(tstringt	printable(t.0tx((sA/usr/lib/python2.7/site-packages/ansible/plugins/callback/yaml.pys	<genexpr>5ss[\x0b\x0c\r]s +\ns
tstyleN(
tNoneRtrstriptjoint
expandtabstretsubt
default_styletyamltrepresentert
ScalarNodet	alias_keytrepresented_objects(tselfttagR
Rtnode((sA/usr/lib/python2.7/site-packages/ansible/plugins/callback/yaml.pytmy_represent_scalar,sR
cB`sDeZdZdZdZdZd�Zdee	d�Z
d�ZRS(ss
    Variation of the Default output which uses nicely readable YAML instead
    of JSON for printing results.
    g@tstdoutRcC`s&tt|�j�ttjj_dS(N(tsuperR
t__init__R&RRtBaseRepresentertrepresent_scalar(R#((sA/usr/lib/python2.7/site-packages/ansible/plugins/callback/yaml.pyR)OscC`s�|jdt�r(tjtdd��Stt|��}|ri|jjdkrid|kri|d=n|jjdkr�d|kr�|d=nd|kr�|d=nd}d	|kr�|d
t	|d	�j
�d7}|d	=nd|kr|d
t	|d�j
�d7}|d=nd|krBd|krBd|d<nd|krgd|krgd|d<n|r�|d7}|ttj
|dtdddtdt��7}ndj|jd��j�}|S(Nt_ansible_no_logtcensoreds\The output has been hidden due to the fact that 'no_log: true' was specified for this resultit
invocationtdifft	exceptionRtchangedschanged=t tskippedsskipped=R'tstdout_liness	<omitted>tstderrtstderr_liness
t
allow_unicodetwidthi�tDumpertdefault_flow_styles
  (tgetRtjsontdumpstdictRR	t_displayt	verbositytstrtlowerRRtdumpRRRtsplitR(R#tresulttindentt	sort_keystkeep_invocationtabridged_resulttdumped((sA/usr/lib/python2.7/site-packages/ansible/plugins/callback/yaml.pyt
_dump_resultsSs2%


"
"



4cC`s+ttj|dtdddtdt��S(NR7R8i�R9R:(RRRCRRR(R#R/((sA/usr/lib/python2.7/site-packages/ansible/plugins/callback/yaml.pyt_serialize_diff�sN(t__name__t
__module__t__doc__tCALLBACK_VERSIONt
CALLBACK_TYPEt
CALLBACK_NAMER)RRRRKRL(((sA/usr/lib/python2.7/site-packages/ansible/plugins/callback/yaml.pyR
Ds	.(t
__future__RRRttypet
__metaclass__t
DOCUMENTATIONRR<RRtsystansible.module_utils._textRRtansible.module_utils.sixRtansible.parsing.yaml.dumperRtansible.plugins.callbackRRR	t ansible.plugins.callback.defaultR
tDefaultRRR&(((sA/usr/lib/python2.7/site-packages/ansible/plugins/callback/yaml.pyt<module>s	

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