Skip to content

Commit 70c8c1f

Browse files
committed
Account for two descriptions having empty configs
1 parent 8cfb0cb commit 70c8c1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mongo/server/description.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ def replica_set_member?
501501
# @since 2.0.6
502502
def ==(other)
503503
return false if self.class != other.class
504+
return true if config == other.config
504505
!config.keys.empty? && config.keys.all? do |k|
505506
config[k] == other.config[k] || EXCLUDE_FOR_COMPARISON.include?(k)
506507
end

0 commit comments

Comments
 (0)