Skip to content

Commit b627509

Browse files
committed
Fix ha_tools.restart_member for mongoses.
1 parent d72758c commit b627509

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/high_availability/ha_tools.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,9 @@ def restart_members(members, router=False):
462462
cmd = routers[member]['cmd']
463463
else:
464464
cmd = nodes[member]['cmd']
465-
466-
lockfile_path = os.path.join(nodes[member]['dbpath'], 'mongod.lock')
467-
if os.path.exists(lockfile_path):
468-
os.remove(lockfile_path)
465+
lockfile_path = os.path.join(nodes[member]['dbpath'], 'mongod.lock')
466+
if os.path.exists(lockfile_path):
467+
os.remove(lockfile_path)
469468

470469
proc = start_subprocess(cmd)
471470
if router:

0 commit comments

Comments
 (0)