1
0
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:
Tino Vazquez 2015-08-20 18:35:31 +02:00
parent 42bb016441
commit a1853dd987

View File

@ -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