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

Merge pull request #1975 from skottler/rackspace_v2_server_filter_param

Add a parameter to servers.all for rackspace v2 to make it the same as other providers
This commit is contained in:
Ohad Levy 2013-07-23 08:14:01 -07:00
commit afebe8ed04

View file

@ -16,8 +16,9 @@ module Fog
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
# @raise [Fog::Compute::RackspaceV2::ServiceError]
# @note Fog's current implementation only returns 1000 servers
# @note The filter parameter on the method is just to maintain compatability with other providers that support filtering.
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Servers-d1e2078.html
def all
def all(filters = {})
data = service.list_servers.body['servers']
load(data)
end