HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/output/__pycache__/yaml_out.cpython-310.pyc
o

�N�g�@s6dZddlZddlZdZe�e�Zdd�Zdd�Z	dS)a�
Display return data in YAML format
==================================

This outputter defaults to printing in YAML block mode for better readability.

CLI Example:

.. code-block:: bash

    salt '*' foo.bar --out=yaml

Example output:

CLI Example:

.. code-block:: python

    saltmine:
      foo:
        bar: baz
        dictionary:
          abc: 123
          def: 456
        list:
          - Hello
          - World
�N�yamlcCstS)N)�__virtualname__�rr�H/opt/saltstack/salt/lib/python3.10/site-packages/salt/output/yaml_out.py�__virtual__(src
Ks�i}dtvr
|jdd�ntddkr|jdtdd�n|jddd�ztjjj|fi|��WStyQ}zddl}t�	d||�
|��WYd}~dSd}~ww)	z-
    Print out YAML using the block mode
    Z
output_indentF)�default_flow_styler)r�indentTNz4Exception %s encountered when trying to serialize %s)Z__opts__�update�salt�utilsrZ	safe_dump�	Exception�pprint�log�	exceptionZpformat)�data�kwargs�params�excr
rrr�output,s"���r)
�__doc__�loggingZsalt.utils.yamlr
r�	getLogger�__name__rrrrrrr�<module>s