mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #3876: Adjust vcenter driver for delete operation after poweroff/stop/suspend
This commit is contained in:
parent
42bb016441
commit
a1853dd987
@ -770,7 +770,9 @@ class VCenterVm
|
||||
vm = connection.find_vm_template(deploy_id)
|
||||
|
||||
begin
|
||||
vm.PowerOffVM_Task.wait_for_completion
|
||||
if vm.summary.runtime.powerState == "poweredOn"
|
||||
vm.PowerOffVM_Task.wait_for_completion
|
||||
end
|
||||
rescue
|
||||
end
|
||||
vm.Destroy_Task.wait_for_completion
|
||||
|
Loading…
x
Reference in New Issue
Block a user