003 File Manager
Current Path:
/usr/local/lib/python3.8/site-packages/salt/thorium
usr
/
local
/
lib
/
python3.8
/
site-packages
/
salt
/
thorium
/
📁
..
📄
__init__.py
(6.11 KB)
📁
__pycache__
📄
calc.py
(5.54 KB)
📄
check.py
(10.61 KB)
📄
file.py
(1.92 KB)
📄
key.py
(2.22 KB)
📄
local.py
(942 B)
📄
reg.py
(4 KB)
📄
runner.py
(908 B)
📄
status.py
(1.03 KB)
📄
timer.py
(829 B)
📄
wheel.py
(551 B)
Editing: wheel.py
""" React by calling asynchronous runners """ import salt.wheel def cmd(name, fun=None, arg=(), **kwargs): """ Execute a runner asynchronous: USAGE: .. code-block:: yaml run_cloud: wheel.cmd: - fun: key.delete - match: minion_id """ ret = {"name": name, "changes": {}, "comment": "", "result": True} if fun is None: fun = name client = salt.wheel.WheelClient(__opts__) low = {"fun": fun, "arg": arg, "kwargs": kwargs} client.cmd_async(low) return ret
Upload File
Create Folder