Skip to content

Commit 35bfccc

Browse files
authored
Merge pull request #24 from timvaillancourt/hidden_mode
Move replset status condition to use "ge 2.6.0" for mongo version
2 parents ab68890 + ccd6076 commit 35bfccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MongoBackup/ReplsetHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_rs_status(self):
3434

3535
def get_rs_config(self):
3636
try:
37-
if self.db.server_version() > tuple("2.4.0".split(".")):
37+
if self.db.server_version() >= tuple("2.6.0".split(".")):
3838
output = self.db.admin_command('replSetGetConfig')
3939
return output['config']
4040
else:

0 commit comments

Comments
 (0)