From 8c652c99da65f68f061931f769400ff2b8b09d4f Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 5 May 2024 19:50:42 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 1aecaabda..9c931c354 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -1058,6 +1058,12 @@ def replInit(): t = {} t['_id'] = x t['host'] = n['host'] + if 'priority' in n: + t['priority'] = n['priority'] + + if 'arbiterOnly' in n and n['arbiterOnly'] == 1: + t['arbiterOnly'] = True + cfg_node.append(t) # print(cfg_node)