Closed rchekaluk closed 7 months ago
Detaching an attached disk does not invoke fog-core Fog::Model#wait_for block when Google API raises Google::Apis::ClientError status_code 404 (this case only occurs intermittently):
Fog::Model#wait_for
Google::Apis::ClientError
server.detach_disk(device_name, true) disk.wait_for { users.nil? || users == []}
When this case occurs, wait_for blocks until timeout.
This is because Fog::Model#wait_for only invokes the block when reload succeeds.
Fixed by https://github.com/fog/fog-google/pull/613
Detaching an attached disk does not invoke fog-core
Fog::Model#wait_for
block when Google API raisesGoogle::Apis::ClientError
status_code 404 (this case only occurs intermittently):When this case occurs, wait_for blocks until timeout.
This is because
Fog::Model#wait_for
only invokes the block when reload succeeds.