File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/__pycache__/salt.cpython-310.pyc
o
�N�g� � @ sl d Z ddlZddlZddlZddlZddlZddlZddlm Z e�
e�Zdd� Z
dd d
�ZdS )a�
This runner makes Salt's
execution modules available
on the salt master.
.. versionadded:: 2016.11.0
.. _salt_salt_runner:
Salt's execution modules are normally available
on the salt minion. Use this runner to call
execution modules on the salt master.
Salt :ref:`execution modules <writing-execution-modules>`
are the functions called by the ``salt`` command.
Execution modules can be called with ``salt-run``:
.. code-block:: bash
salt-run salt.cmd test.ping
# call functions with arguments and keyword arguments
salt-run salt.cmd test.arg 1 2 3 key=value a=1
Execution modules are also available to salt runners:
.. code-block:: python
__salt__['salt.cmd'](fun=fun, args=args, kwargs=kwargs)
� N)�SaltClientErrorc O s� t �d| � tjjjdi |��}|�dd�}t�t �}tj
�|�|d<