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:
parent
87de4ba23c
commit
695129d41c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue