mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Bug #3994: Add CLEANUP_DELETE to the list of valid cancel states
This commit is contained in:
parent
bbb2063a48
commit
702e8ff6de
@ -1103,7 +1103,7 @@ class VCenterVm
|
||||
case lcm_state
|
||||
when "SHUTDOWN_POWEROFF", "SHUTDOWN_UNDEPLOY"
|
||||
shutdown(deploy_id, hostname, lcm_state, keep_disks)
|
||||
when "CANCEL", "LCM_INIT", "CLEANUP_RESUBMIT", "SHUTDOWN"
|
||||
when "CANCEL", "LCM_INIT", "CLEANUP_RESUBMIT", "SHUTDOWN", "CLEANUP_DELETE"
|
||||
hid = VIClient::translate_hostname(hostname)
|
||||
connection = VIClient.new(hid)
|
||||
vm = connection.find_vm_template(deploy_id)
|
||||
@ -1117,7 +1117,7 @@ class VCenterVm
|
||||
if keep_disks
|
||||
detach_all_disks(vm)
|
||||
else
|
||||
detach_attached_disks(vm, disks, hostname)
|
||||
detach_attached_disks(vm, disks, hostname) if disks
|
||||
end
|
||||
vm.Destroy_Task.wait_for_completion
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user