-
Notifications
You must be signed in to change notification settings - Fork 91
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
safe_call should catch Fog::Errors::NotFound #156
safe_call should catch Fog::Errors::NotFound #156
Conversation
Checked commit mansam@a406f66 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Nice catch Sam 💯 Looks good to me, merging! |
safe_call should catch Fog::Errors::NotFound (cherry picked from commit 84121cb)
Gaprindashvili backport details:
|
@mansam Please add BZ link. |
@mansam 2 BZs you referenced are already CLOSED/ERRATA for Fine branch. I'd need a non-closed BZ so it's clear what this particular PR will be fixing for a particular build... |
@simaishi That makes sense, this PR was a response to comments made on the BZ after it was already closed and I suppose I should have opened a new BZ for the fix. Coincidentally, a new fine BZ was just opened that I think should be fixed by this as well: https://bugzilla.redhat.com/show_bug.cgi?id=1552135 |
Fine backport (to manageiq repo) details:
|
Some fog calls raise subclasses of
Fog::Errors::NotFound
instead ofExcon::Errors::NotFound
. This change allowssafe_call
(and by extensionsafe_list
) to handle those cases.This should fix issues with deleted flavors crashing refresh despite the catch, since
list_tenants_with_flavor_access
throwsFog::Compute::OpenStack::NotFound
.