1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[zerigo] Fix Invalid Excon request warning

This was triggering the warning:
`[excon][WARNING] Invalid Excon request keys: :host`

Followed by a stacktrace. Looking at [fog#2292][1] and the related
issues this seems like the right fix and seems to work fine.

[1]: https://github.com/fog/fog/pull/2292
This commit is contained in:
Phil Kates 2014-05-01 15:21:45 -07:00
parent 2450057915
commit 765b841a97

View file

@ -100,7 +100,7 @@ module Fog
end
begin
response = @connection.request(params.merge!({:host => @host}))
response = @connection.request(params)
rescue Excon::Errors::HTTPStatusError => error
raise case error
when Excon::Errors::NotFound