1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Feature #2911: Fix cancel race condition

This commit is contained in:
Tino Vazquez 2014-09-26 19:41:59 +02:00
parent 5dccdb7e23
commit 7f1b1d32b4

View File

@ -440,7 +440,7 @@ class VCenterVm
case lcm_state
when "SHUTDOWN_POWEROFF", "SHUTDOWN_UNDEPLOY"
shutdown(deploy_id, hostname, lcm_state)
when "CANCEL"
when "CANCEL", "LCM_INIT"
hid = VIClient::translate_hostname(hostname)
connection = VIClient.new(hid)
vm = connection.find_vm_template(deploy_id)