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

[rackspace|compute] Images#all returns data

This commit is contained in:
Josh Lane & Jason Hansen 2012-05-08 10:48:12 -07:00 committed by Jason Hansen & Josh Lane
parent 76a3f0f205
commit 1b131520b6

View file

@ -13,9 +13,11 @@ module Fog
def all
data = connection.list_images_detail.body['images']
load(data)
models = load(data)
if server
self.replace(self.select {|image| image.server_id == server.id})
else
models
end
end