diff --git a/src/vmm_mad/exec/one_vmm_exec.rb b/src/vmm_mad/exec/one_vmm_exec.rb index 107ddcdd5f..6f44895e0e 100755 --- a/src/vmm_mad/exec/one_vmm_exec.rb +++ b/src/vmm_mad/exec/one_vmm_exec.rb @@ -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