HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/thorium/__pycache__/local.cpython-310.pyc
o

�N�g��@sdZddlZddd�ZdS)	z4
Run remote execution commands via the local client
�N��glob�c
Ksl|iddd�}tjjtd��}|j|||f|||d�|��}	|	|dd<Wd�|S1s/wY|S)	a�
    Execute a remote execution command

    USAGE:

    .. code-block:: yaml

        run_remote_ex:
          local.cmd:
            - tgt: '*'
            - func: test.ping

        run_remote_ex:
          local.cmd:
            - tgt: '*'
            - func: test.sleep
            - arg:
              - 30

        run_remote_ex:
          local.cmd:
            - tgt: '*'
            - func: test.sleep
            - kwarg:
              length: 30
    rT)�name�changesZcomment�result)Zmopts)�tgt_type�ret�kwargr�jidN)�salt�clientZget_local_clientZ__opts__Z	cmd_async)
rZtgt�func�argrr	r
�kwargsr
rrr�F/opt/saltstack/salt/lib/python3.10/site-packages/salt/thorium/local.py�cmds���
��r)rrrN)�__doc__Zsalt.clientrrrrrr�<module>s