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:
parent
76a3f0f205
commit
1b131520b6
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue