diff options
-rw-r--r-- | buildscripts/resmokelib/testing/fixtures/replicaset.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/replicaset.py b/buildscripts/resmokelib/testing/fixtures/replicaset.py index 47c3dc66045..e9771f0925f 100644 --- a/buildscripts/resmokelib/testing/fixtures/replicaset.py +++ b/buildscripts/resmokelib/testing/fixtures/replicaset.py @@ -180,8 +180,9 @@ class ReplicaSetFixture(interface.ReplFixture): # pylint: disable=too-many-inst client = self.nodes[0].mongo_client() interface.authenticate(client, self.auth_options) - if client.local.system.replset.count(): + if client.local.system.replset.count_documents(filter={}): # Skip initializing the replset if there is an existing configuration. + self.logger.info("Configuration exists. Skipping initializing the replset.") return if self.write_concern_majority_journal_default is not None: |