lib/fog/rackspace/requests/compute/get_server_details.rb in fog-0.3.7 vs lib/fog/rackspace/requests/compute/get_server_details.rb in fog-0.3.8
- old
+ new
@@ -35,10 +35,10 @@
class Mock
def get_server_details(server_id)
response = Excon::Response.new
- if server = list_servers_detail.body['servers'].detect { |server| server['id'] == server_id }
+ if server = list_servers_detail.body['servers'].detect {|_| _['id'] == server_id}
response.status = [200, 203][rand(1)]
response.body = { 'server' => server }
response
else
raise Fog::Rackspace::Compute::NotFound