File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/__pycache__/cmd_yaml.cpython-310.pyc
o
�N�g} � @ s* d Z ddlZddlZe�e�Zdd� ZdS )zv
Execute a command and read the output as YAML. The YAML data is then directly overlaid onto the minion's Pillar data
� Nc C sR z|� d| �}td |dd�}tjj�|�W S ty( t�d||� i Y S w )z7
Execute a command and read the output as YAML
z%szcmd.run_stdoutT)Zpython_shellz7YAML data from '%s' failed to parse. Command output:
%s) �replaceZ__salt__�salt�utilsZyamlZ safe_load� Exception�log�critical)Z minion_idZpillarZcommand�output� r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/cmd_yaml.py�
ext_pillar s ��r )�__doc__�loggingZsalt.utils.yamlr � getLogger�__name__r r r r r r
�<module> s