mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
Update sql_mysql.py
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user