diff --git a/elasticsearch-transport/lib/elasticsearch/transport/transport/connections/connection.rb b/elasticsearch-transport/lib/elasticsearch/transport/transport/connections/connection.rb index 52bd07331f..9f3c4e87d5 100644 --- a/elasticsearch-transport/lib/elasticsearch/transport/transport/connections/connection.rb +++ b/elasticsearch-transport/lib/elasticsearch/transport/transport/connections/connection.rb @@ -135,14 +135,15 @@ def resurrectable? } end - # Equality operator based on connection protocol, host and port + # Equality operator based on connection protocol, host, port and attributes # # @return [Boolean] # def ==(other) self.host[:protocol] == other.host[:protocol] && \ self.host[:host] == other.host[:host] && \ - self.host[:port].to_i == other.host[:port].to_i + self.host[:port].to_i == other.host[:port].to_i && \ + self.host[:attributes] == other.host[:attributes] end # @return [String]