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

Removed 'server' attribute from server model, and fixed 'all' method.

This commit is contained in:
Rupak Ganguly 2012-08-20 18:39:08 -04:00
parent 3b9795eaec
commit a59eb1986d

View file

@ -9,14 +9,9 @@ module Fog
model Fog::Compute::HP::Image
attribute :server
def all
data = connection.list_images_detail.body['images']
load(data)
if server
self.replace(self.select {|image| image.server.id == server.id})
end
self
end