mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1754 from dm1try/cloudstack_add_attributes_to_servers_method
[cloudstack] servers collection, add attributes to :all method
This commit is contained in:
commit
1bc174e8a7
1 changed files with 3 additions and 2 deletions
|
@ -9,8 +9,9 @@ module Fog
|
||||||
|
|
||||||
model Fog::Compute::Cloudstack::Server
|
model Fog::Compute::Cloudstack::Server
|
||||||
|
|
||||||
def all
|
def all(attributes={})
|
||||||
data = service.list_virtual_machines["listvirtualmachinesresponse"]["virtualmachine"] || []
|
response = service.list_virtual_machines(attributes)
|
||||||
|
data = response["listvirtualmachinesresponse"]["virtualmachine"] || []
|
||||||
load(data)
|
load(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue