File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/ipmi.cpython-310.pyc
Back
o ;j�e � @ s| d Z dZzddlmZ ddlmZ W n ey( Z z ee�ZW Y dZ[ndZ[ww dZ dd� Z dd � ZG d d� d�ZG dd � d �Z dEdd�Zdd� Z dFdd�ZdGdd�ZdHdd�Z dIdd �ZdHd!d"�Zd#d$� ZdJd%d&�ZdKd(d)�Zd*d+� Zd,d-� Zd.d/� Zd0d1� ZdLd3d4�ZdMd6d7�ZdNd9d:�ZdHd;d<�ZdHd=d>�Z dHd?d@�Z! dOdAdB�Z"dHdCdD�Z#dS )Pa& Support IPMI commands over LAN. This module does not talk to the local systems hardware through IPMI drivers. It uses a python module `pyghmi`. :depends: Python module pyghmi. You can install pyghmi using pip: .. code-block:: bash pip install pyghmi :configuration: The following configuration defaults can be define (pillar or config files): .. code-block:: python ipmi.config: api_host: 127.0.0.1 api_user: admin api_pass: apassword api_port: 623 api_kg: None Usage can override the config defaults: .. code-block:: bash salt-call ipmi.get_user api_host=myipmienabled.system api_user=admin api_pass=pass uid=1 N� )�command)�sessionZipmic C s t d u t fS �N)� IMPORT_ERR� r r �E/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/ipmi.py�__virtual__+ s r c K s` ddddddd�}dt � v rt� d �}|�td |i �� t|�t| �@ D ]}| | ||<