From ad44a97905feb3b2b3e6a63cc0ee2d2bc5fdab14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Tue, 12 Feb 2013 18:11:54 +0100 Subject: [PATCH] Feature #1739: Do not update poll info for VMs that should not be in the reported host --- src/im/InformationManagerDriver.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/im/InformationManagerDriver.cc b/src/im/InformationManagerDriver.cc index 4f44fa4a78..c812f96019 100644 --- a/src/im/InformationManagerDriver.cc +++ b/src/im/InformationManagerDriver.cc @@ -168,14 +168,16 @@ void InformationManagerDriver::protocol( if (rc == 0) { - if (vm_ids.erase(vmid) != 1) + if (vm_ids.erase(vmid) == 1) + { + monitor_str = vatt->vector_value("POLL"); + + VirtualMachineManagerDriver::process_poll(vmid, monitor_str); + } + else { // TODO: This VM shoulnd't be running on this host } - - monitor_str = vatt->vector_value("POLL"); - - VirtualMachineManagerDriver::process_poll(vmid, monitor_str); } else {