Skip to content

Commit c3ec800

Browse files
committed
[CLIENT] Remove unnecessary check for cloud_id when setting default port
1 parent d48f561 commit c3ec800

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-transport/lib/elasticsearch/transport/transport

1 file changed

+1
-1
lines changed

elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __build_connections
148148
Connections::Collection.new \
149149
:connections => hosts.map { |host|
150150
host[:protocol] = host[:scheme] || options[:scheme] || options[:http][:scheme] || DEFAULT_PROTOCOL
151-
host[:port] ||= options[:port] || options[:http][:port] || DEFAULT_PORT unless options[:cloud_id]
151+
host[:port] ||= options[:port] || options[:http][:port] || DEFAULT_PORT
152152
if (options[:user] || options[:http][:user]) && !host[:user]
153153
host[:user] ||= options[:user] || options[:http][:user]
154154
host[:password] ||= options[:password] || options[:http][:password]

0 commit comments

Comments
 (0)