From c545062d07018e17d7a44f89c1d4a373a72ecbaa Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 7 May 2024 20:24:05 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 4493342a5..1300bd55c 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -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'] = '无'