mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
feature #132: Use again deploy_id from drv_message for actions.
This commit is contained in:
parent
1f3b50ba35
commit
4f242f4df9
@ -450,20 +450,22 @@ class ExecDriver < VirtualMachineDriver
|
||||
# POLL action, gets information of a VM
|
||||
#
|
||||
def poll(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data.elements['HOST'].text
|
||||
data = decode(drv_message)
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
|
||||
do_action("#{id} #{host}", id, host, ACTION[:poll])
|
||||
do_action("#{deploy_id} #{host}", id, host, ACTION[:poll])
|
||||
end
|
||||
|
||||
#
|
||||
# REBOOT action, reboots a running VM
|
||||
#
|
||||
def reboot(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data.elements['HOST'].text
|
||||
data = decode(drv_message)
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
|
||||
do_action("#{id} #{host}", id, host, ACTION[:reboot])
|
||||
do_action("#{deploy_id} #{host}", id, host, ACTION[:reboot])
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user