Update index.py

This commit is contained in:
midoks 2023-08-07 22:05:01 +08:00
parent 4acc48ded2
commit 52145e710b
1 changed files with 1 additions and 1 deletions

View File

@ -2290,9 +2290,9 @@ def initSlaveStatusSSH(version=''):
import paramiko
for data in ssh_list:
SSH_PRIVATE_KEY = "/tmp/t_ssh_" + ip + ".txt"
ip = data['ip']
master_port = data['port']
SSH_PRIVATE_KEY = "/tmp/t_ssh_" + ip + ".txt"
mw.writeFile(SSH_PRIVATE_KEY, data['id_rsa'].replace('\\n', '\n'))
mw.execShell("chmod 600 " + SSH_PRIVATE_KEY)