File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/__pycache__/cmd_json.cpython-310.pyc
o
�N�g � @ s* d Z ddlZddlZe�e�Zdd� ZdS )zw
Execute a command and read the output as JSON. The JSON data is then directly overlaid onto the minion's Pillar data.
� Nc C sH z|� d| �}tjj�td |��W S ty# t�d|� i Y S w )z7
Execute a command and read the output as JSON
z%szcmd.runz!JSON data from %s failed to parse) �replace�salt�utils�json�loadsZ__salt__� Exception�log�critical)Z minion_idZpillarZcommand� r
�H/opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/cmd_json.py�
ext_pillar s �r )�__doc__�loggingZsalt.utils.jsonr � getLogger�__name__r r r
r
r
r �<module> s