Update index.py

This commit is contained in:
Mr Chen
2024-05-07 20:24:05 +08:00
parent aa9a412e9a
commit c545062d07
+1 -1
View File
@@ -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'] = '无'