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/pillar/__pycache__/cmd_json.cpython-310.pyc
o

�N�g�@s*dZddlZddlZe�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.
�NcCsHz|�d|�}tjj�td|��WSty#t�d|�iYSw)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_pillars�r)�__doc__�loggingZsalt.utils.jsonr�	getLogger�__name__rrr
r
r
r�<module>s