1
0
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:
Ruben S. Montero 2011-12-26 13:28:24 +01:00
parent 1f3b50ba35
commit 4f242f4df9

View File

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