Update sshkit_with_ext.rb

This commit is contained in:
Donal McBreen
2024-05-21 11:38:30 +01:00
committed by GitHub
parent 2f912367ac
commit 1e296c4140

View File

@@ -80,8 +80,7 @@ class SSHKit::Backend::Netssh
module LimitConcurrentStartsInstance module LimitConcurrentStartsInstance
private private
def with_ssh(&block) def with_ssh(&block)
host.ssh_options = (host.ssh_options || {}).merge({ port: host.port, user: host.user }.compact) host.ssh_options = self.class.config.ssh_options.merge(host.ssh_options || {})
host.ssh_options = self.class.config.ssh_options.merge(host.ssh_options)
self.class.pool.with( self.class.pool.with(
method(:start_with_concurrency_limit), method(:start_with_concurrency_limit),
String(host.hostname), String(host.hostname),