From 4f242f4df9ec31b1668abde9c41b96010a024205 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 26 Dec 2011 13:28:24 +0100 Subject: [PATCH] feature #132: Use again deploy_id from drv_message for actions. --- src/vmm_mad/exec/one_vmm_exec.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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