mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-18 02:50:09 +03:00
Feature #2911: Fix cancel race condition
This commit is contained in:
parent
5dccdb7e23
commit
7f1b1d32b4
@ -440,7 +440,7 @@ class VCenterVm
|
|||||||
case lcm_state
|
case lcm_state
|
||||||
when "SHUTDOWN_POWEROFF", "SHUTDOWN_UNDEPLOY"
|
when "SHUTDOWN_POWEROFF", "SHUTDOWN_UNDEPLOY"
|
||||||
shutdown(deploy_id, hostname, lcm_state)
|
shutdown(deploy_id, hostname, lcm_state)
|
||||||
when "CANCEL"
|
when "CANCEL", "LCM_INIT"
|
||||||
hid = VIClient::translate_hostname(hostname)
|
hid = VIClient::translate_hostname(hostname)
|
||||||
connection = VIClient.new(hid)
|
connection = VIClient.new(hid)
|
||||||
vm = connection.find_vm_template(deploy_id)
|
vm = connection.find_vm_template(deploy_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user