-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[openstack] Volume API uses Fog::Compute::OpenStack::NotFound exception class #3618
Comments
Too bad there isn't a Fog::OpenStack::NotFound |
I guess you could raise it but make it a subclass of excon not found, but that seems pretty weird/bad also. |
I noticed this copy-paste error also in the following services: baremetal, image, metering, orchestration and planning |
@d063130 good eye, we'll try to fix those as well when we make the change. |
Closing in favor of fog/fog-openstack#48 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
lib/fog/openstack/volume.rb#L177 has what is probably just a copy-paste error:
That custom exception class should be
Fog::Volume::OpenStack::NotFound
.(withVolume
instead ofCompute
). Since that class already exists and is used in a few other places, I don't see an easy way to fix that in a backwards-compatible way. So it should at least be noted and fixed when backwards compatibility is broken the next time.The text was updated successfully, but these errors were encountered: