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

Make job polling requests for Dyn retryable within exconn by passing the idempotent option.

This commit is contained in:
Peter Drake 2014-04-18 11:31:37 -04:00
parent 866d49350e
commit cc975ef975

View file

@ -123,7 +123,12 @@ module Fog
job_location = response.headers['Location'] job_location = response.headers['Location']
Fog.wait_for(time_to_wait) do Fog.wait_for(time_to_wait) do
response = request(:expects => original_expects, :method => :get, :path => job_location) response = request(
:expects => original_expects,
:idempotent => true,
:method => :get,
:path => job_location
)
response.body['status'] != 'incomplete' response.body['status'] != 'incomplete'
end end