From 52145e710b8a4fe2a5919dcf62395c00dcdc2c75 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 7 Aug 2023 22:05:01 +0800 Subject: [PATCH] Update index.py --- plugins/mariadb/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 1f5c50fce..98016a477 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -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)