Skip to content

Commit

Permalink
Fix runOnRequirements for load-balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed May 24, 2021
1 parent 16c251f commit dc940cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,10 @@ def check_auth_with_sharding(self, func):
func=func)

def is_topology_type(self, topologies):
if 'load-balanced' in topologies and self.load_balancer:
return True
if self.load_balancer:
if 'load-balanced' in topologies:
return True
return False
if 'single' in topologies and not (self.is_mongos or self.is_rs):
return True
if 'replicaset' in topologies and self.is_rs:
Expand Down

0 comments on commit dc940cc

Please sign in to comment.