mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -496,7 +496,7 @@ def runReplInfo():
|
||||
|
||||
d = getConfigData()
|
||||
result = {}
|
||||
if 'replSetName' in d['replication']:
|
||||
if 'replication' in d and 'replSetName' in d['replication']:
|
||||
result['repl_name'] = d['replication']['replSetName']
|
||||
|
||||
result['status'] = '无'
|
||||
|
||||
Reference in New Issue
Block a user