From 536c76b000e3303832fd0d401e7931e6039dc1e9 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 2 Apr 2025 15:42:06 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index d7489a99b..193c84693 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -2407,7 +2407,7 @@ def getMasterRepSlaveUserCmd(version): # SHOW REPLICA STATUS; cmd_status = "show master status" - if pk_version.parse(ver) > pk_version.parse("8.0"): + if pk_version.parse(version) > pk_version.parse("8.0"): cmd_status = "show replica status" mstatus = db.query(cmd_status) if len(mstatus) == 0: