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

Add a parameter to servers.all for rackspace v2 to make it the same as other providers

This commit is contained in:
Sam Kottler 2013-07-23 10:57:57 -04:00
parent dc7c5e285a
commit d4fb4e21a1

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