mirror of https://github.com/apache/cloudstack.git
Changed delete method signature inside VirtualMachine class. From 4.3 onwards vm destroy has expunge parameter to expunge the vm immediately.
Signed-off-by: sanjeev <sanjeev@apache.org> Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
This commit is contained in:
parent
88f35179ef
commit
4596ae9aac
|
|
@ -612,10 +612,11 @@ class VirtualMachine:
|
|||
[setattr(cmd, k, v) for k, v in kwargs.items()]
|
||||
return(apiclient.updateVirtualMachine(cmd))
|
||||
|
||||
def delete(self, apiclient):
|
||||
def delete(self, apiclient, **kwargs):
|
||||
"""Destroy an Instance"""
|
||||
cmd = destroyVirtualMachine.destroyVirtualMachineCmd()
|
||||
cmd.id = self.id
|
||||
[setattr(cmd, k, v) for k, v in kwargs.items()]
|
||||
apiclient.destroyVirtualMachine(cmd)
|
||||
|
||||
def expunge(self, apiclient):
|
||||
|
|
|
|||
Loading…
Reference in New Issue