Update index.py

pull/143/head
midoks 3 years ago
parent ad40fe1374
commit 740d171594
  1. 1
      plugins/mysql/index.py

@ -1500,6 +1500,7 @@ def getMasterStatus(version=''):
db = pMysqlDb()
dlist = db.query('show slave status')
dlist = list(dlist)
# print(dlist, len(dlist))
if len(dlist) > 0 and (dlist[0][10] == 'Yes' or dlist[0][11] == 'Yes'):
data['slave_status'] = True

Loading…
Cancel
Save