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

4 commits

Author SHA1 Message Date
Dan Prince
ba26129001 OpenStack auth updates to select by service name.
This patch updates the OpenStack auth implementation so that
it supports selecting API service by both 'name' and 'type'.

Previously the implementation was confusing because it
used a config param called :openstack_service_name to
select the service 'type' from the catalog. This patch
swaps it so that :openstack_service_name actually selects
by 'name'.

The previous logic to select service by type ('compute' for example)
has been preserved in a new :openstack_service_type parameter.
This option is used just as it was before for backwards compatability.

This change is potentially breaking for anyone previously using
:openstack_service_name (which I don't think is that common but is
possible). As such we should probably make a release note saying
that previous users of :openstack_service_name should migrate to
use :openstack_service_type instead.
2012-12-10 07:55:54 -05:00
Dan Prince
c544610791 OpenStack custom exception cleanup.
Fixes an exception class name error for the custom
OpenStack ServiceUnavailable exception. Previously the wrong
class name was being used.

Also cleans up and simplifies some other exceptions in the OpenStack
implementation. (We can simply use NotFound from Fog::Errors instead)
2012-12-09 16:51:07 -05:00
Eric Hodel
64b08cbf12 Raise a NotFound exception for missing services
Previously a NoMethodError would be raised giving no information about
what was missing.  Now an appropriate exception with a useful message is
returned.
2012-12-05 14:20:46 -08:00
Eric Hodel
f15f54aff0 Added test for Fog::Openstack::authenticate_v2 2012-12-05 14:20:46 -08:00