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

Add support for expunging node in cloudstack.

The method takes a hash, if expunge is set to true in that hash
the vm is expunged immediately. Expunge is false by default.
This commit is contained in:
Olle Lundberg 2014-04-15 16:20:54 +02:00
parent 87de4ba23c
commit 695129d41c

View file

@ -49,9 +49,9 @@ module Fog
nics.map{|nic| Address.new(nic)}
end
def destroy
def destroy(options={})
requires :id
data = service.destroy_virtual_machine("id" => id)
data = service.destroy_virtual_machine(options.merge({'id'=> self.id}))
service.jobs.new(data["destroyvirtualmachineresponse"])
end