Update index.py

pull/561/head
Mr Chen 1 year ago
parent dc59f24ce2
commit 08f75685fb
  1. 7
      plugins/mongodb/index.py

@ -432,7 +432,12 @@ def runInfo():
''' '''
client = mongdbClient() client = mongdbClient()
db = client.admin db = client.admin
serverStatus = db.command('serverStatus')
try:
serverStatus = db.command('serverStatus')
except Exception as e:
return mw.returnJson(False, str(e))
listDbs = client.list_database_names() listDbs = client.list_database_names()

Loading…
Cancel
Save