File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/__pycache__/puppet.cpython-310.pyc
o
�N�g. � @ s* d Z ddlZddlZe�e�Zdd� ZdS )z�
Execute an unmodified puppet_node_classifier and read the output as YAML. The YAML data is then directly overlaid onto the minion's Pillar data.
� Nc C sN zt jj�td |� d| � ���}|d W S ty& t�d|� i Y S w )zR
Execute an unmodified puppet_node_classifier and read the output as YAML
zcmd.run� Z
parametersz!YAML data from %s failed to parse)�salt�utilsZyamlZ safe_loadZ__salt__� Exception�log�critical)Z minion_idZpillarZcommand�data� r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/puppet.py�
ext_pillar s
�r )�__doc__�loggingZsalt.utils.yamlr � getLogger�__name__r r r r r r
�<module> s