Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion agents/plugins/mk_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,9 @@ def main(argv=None):
# this is detected here
if "primary" in repl_info and not repl_info.get("primary"):
_write_section_replica(None)
return
# Fixed: Only return if there is truly no primary
if "primary" in repl_info and not repl_info.get("primary"):
return

piggyhost = repl_info.get("setName") if repl_info else None
if piggyhost:
Expand Down