Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fog::Compute::Google::Disks#get when rescuing Google::Apis::ClientError #612

Closed
rchekaluk opened this issue Nov 10, 2023 · 1 comment
Closed

Comments

@rchekaluk
Copy link

rchekaluk commented Nov 10, 2023

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):

    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.

@rchekaluk
Copy link
Author

Fixed by #613

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant