Skip to content

Commit

Permalink
Merge pull request #284 from sseago/bz1573893
Browse files Browse the repository at this point in the history
bz1573893: duplicate opts hash before modifying in raw_connect_try_ssl
  • Loading branch information
aufi authored May 3, 2018
2 parents 1d2d6c5 + 018d768 commit 70f8b6d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def self.try_connection(security_protocol, ssl_options = {})
end
end

def self.raw_connect_try_ssl(username, password, address, port, service = "Compute", opts = nil, api_version = nil,
def self.raw_connect_try_ssl(username, password, address, port, service = "Compute", options = nil, api_version = nil,
security_protocol = nil)
opts = options.dup
ssl_options = opts.delete(:ssl_options) || {}
try_connection(security_protocol, ssl_options) do |scheme, connection_options|
auth_url = auth_url(address, port, scheme, api_version)
Expand Down

0 comments on commit 70f8b6d

Please sign in to comment.