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:
parent
3b9795eaec
commit
a59eb1986d
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue