HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/uwsgi.cpython-310.pyc
o

�N�g��@s(dZddlZddlZdd�Zdd�ZdS)z�
uWSGI stats server https://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html

:maintainer: Peter Baumgartner <pete@lincolnloop.com>
:maturity:   new
:platform:   all
�NcCsd}tjj�|�r|SdS)z4
    Only load the module if uwsgi is installed
    �uwsgi)FzOThe uwsgi execution module failed to load: the uwsgi binary is not in the path.)�salt�utils�path�which)�cmd�r�F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/uwsgi.py�__virtual__
sr
cCs*dd|�g}td|dd�}tjj�|�S)a#
    Return the data from `uwsgi --connect-and-read` as a dictionary.

    socket
        The socket the uWSGI stats server is listening on

    CLI Example:

    .. code-block:: bash

        salt '*' uwsgi.stats /var/run/mystatsserver.sock

        salt '*' uwsgi.stats 127.0.0.1:5050
    rz--connect-and-readzcmd.runF)Zpython_shell)Z__salt__rr�json�loads)�socketr�outrrr	�statssr)�__doc__Zsalt.utils.jsonrZsalt.utils.pathr
rrrrr	�<module>s