1
0
Fork 0
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:
Wesley Beary 2013-04-15 09:35:38 -07:00
commit 1bc174e8a7

View file

@ -9,8 +9,9 @@ module Fog
model Fog::Compute::Cloudstack::Server
def all
data = service.list_virtual_machines["listvirtualmachinesresponse"]["virtualmachine"] || []
def all(attributes={})
response = service.list_virtual_machines(attributes)
data = response["listvirtualmachinesresponse"]["virtualmachine"] || []
load(data)
end