File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/wheel/__pycache__/__init__.cpython-310.pyc
o
�N�g� � @ sf d Z ddlmZ ddlZddlZddlZddlZddlZddl ZG dd� dej
jjej
jj
�ZeZdS )z+
Modules used to control the master itself
� )�MappingNc sd e Zd ZdZdZdZd� fdd� Zdd� Zdd � Zddd�Z d
d� Z
d� fdd� Z� ZS )�WheelClienta�
An interface to Salt's wheel modules
:ref:`Wheel modules <all-salt.wheel>` interact with various parts of the
Salt Master.
Importing and using ``WheelClient`` must be done on the same machine as the
Salt Master and it must be done using the same user that the Salt Master is
running as. Unless :conf_master:`external_auth` is configured and the user
is authorized to execute wheel functions: (``@wheel``).
Usage:
.. code-block:: python
import salt.config
import salt.wheel
opts = salt.config.master_config('/etc/salt/master')
wheel = salt.wheel.WheelClient(opts)
�wheelNc s( t � j||d� tjj|| jd�| _d S )N)�context)�super�__init__�salt�loaderZwheelsr Z functions)�self�optsr �� __class__� �G/opt/saltstack/salt/lib/python3.10/site-packages/salt/wheel/__init__.pyr * s zWheelClient.__init__c K s"