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__/chassis.cpython-310.pyc
o

�N�g�@sDdZddlZddlZe�e�ZdgZdZdd�Z	dd�Z
d	d
�ZdS)aG
Glue execution module to link to the :mod:`fx2 proxymodule <salt.proxy.fx2>`.

Depends: :mod:`iDRAC Remote execution module (salt.modules.dracr) <salt.modules.dracr>`

For documentation on commands that you can direct to a Dell chassis via proxy,
look in the documentation for :mod:`salt.modules.dracr <salt.modules.dracr>`.

This execution module calls through to a function in the fx2 proxy module
called ``chconfig``.  That function looks up the function passed in the ``cmd``
parameter in :mod:`salt.modules.dracr <salt.modules.dracr>` and calls it.

.. versionadded:: 2015.8.2
�NZfx2ZchassiscCstjj��rtSdS)z
    Only work on proxy
    )FzPThe chassis execution module cannot be loaded: this only works in proxy minions.)�salt�utils�platformZis_proxy�__virtualname__�rr�H/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/chassis.py�__virtual__srcCs&tdd}t|d�\}}||fS)N�proxy�	proxytypez.find_credentials)�__opts__�	__proxy__)�proxyprefix�username�passwordrrr�chassis_credentials'srcOsbtdd}t�\}}||d<||d<t|d�|d<tddd}t||g|�Ri|��S)Nr	r
Zadmin_usernameZadmin_passwordz.host�hostz	.chconfig)rrr)�cmd�args�kwargsr
rrZproxycmdrrrr-s
r)�__doc__�loggingZsalt.utils.platformr�	getLogger�__name__�logZ__proxyenabled__rrrrrrrr�<module>s