mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Feature #1739: Do not update poll info for VMs that should not be in the reported host
This commit is contained in:
1 parent
89f2cdac22
commit
ad44a97905
1 file changed
+7
-5
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user