From d4fb4e21a1a54c3edd5978e7ff97da95cb7556f3 Mon Sep 17 00:00:00 2001 From: Sam Kottler Date: Tue, 23 Jul 2013 10:57:57 -0400 Subject: [PATCH] Add a parameter to servers.all for rackspace v2 to make it the same as other providers --- lib/fog/rackspace/models/compute_v2/servers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/rackspace/models/compute_v2/servers.rb b/lib/fog/rackspace/models/compute_v2/servers.rb index dbfb42151..b42d2e02d 100644 --- a/lib/fog/rackspace/models/compute_v2/servers.rb +++ b/lib/fog/rackspace/models/compute_v2/servers.rb @@ -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