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: key.py
import salt.utils.parsers from salt.utils.verify import check_user, verify_log class SaltKey(salt.utils.parsers.SaltKeyOptionParser): """ Initialize the Salt key manager """ def run(self): """ Execute salt-key """ import salt.key self.parse_args() self.setup_logfile_logger() verify_log(self.config) key = salt.key.KeyCLI(self.config) if check_user(self.config["user"]): key.run()
Upload File
Create Folder