Update sql_mysql.py

This commit is contained in:
Mr Chen
2024-12-02 04:41:35 +08:00
parent 9d05edf09f
commit 54bd8f1d5c
+1 -1
View File
@@ -598,7 +598,7 @@ class nosqlMySQLCtr():
return mw.returnData(False,'无法链接')
slave_info = my_instance.find('SHOW SLAVE STATUS')
if len(slave_info) == 0:
if slave_info is None:
return mw.returnData(True, 'ok', '未开启从库!')
msg = ''