003 File Manager
Current Path:
/usr/local/lib/python3.8/site-packages/salt/cli
usr
/
local
/
lib
/
python3.8
/
site-packages
/
salt
/
cli
/
📁
..
📄
__init__.py
(73 B)
📁
__pycache__
📄
api.py
(2.32 KB)
📄
batch.py
(12 KB)
📄
call.py
(1.67 KB)
📄
caller.py
(11.48 KB)
📄
cp.py
(9.37 KB)
📄
daemons.py
(21.05 KB)
📄
key.py
(487 B)
📄
run.py
(1.95 KB)
📄
salt.py
(17.08 KB)
📄
spm.py
(803 B)
📄
ssh.py
(583 B)
Editing: ssh.py
import sys import salt.client.ssh import salt.utils.parsers from salt.utils.verify import verify_log class SaltSSH(salt.utils.parsers.SaltSSHOptionParser): """ Used to Execute the salt ssh routine """ def run(self): if "-H" in sys.argv or "--hosts" in sys.argv: sys.argv += ["x", "x"] # Hack: pass a mandatory two options # that won't be used anyways with -H or --hosts self.parse_args() self.setup_logfile_logger() verify_log(self.config) ssh = salt.client.ssh.SSH(self.config) ssh.run()
Upload File
Create Folder