mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Development: More fix when merging POLL info strings
This commit is contained in:
parent
c497951bb7
commit
b4b9548b8b
@ -345,20 +345,17 @@ int Host::update_info(Template &tmpl,
|
||||
|
||||
if (rc == 0 && vmid != -1)
|
||||
{
|
||||
if (tmp_lost_vms.erase(vmid) == 1) //Good, known
|
||||
map<int, string>::iterator it_vm;
|
||||
|
||||
it_vm = found.find(vmid);
|
||||
|
||||
if ( tmp_lost_vms.erase(vmid) == 1 ) //Good, known
|
||||
{
|
||||
map<int, string>::iterator it_vm;
|
||||
|
||||
it_vm = found.find(vmid);
|
||||
|
||||
if ( it_vm != found.end() )
|
||||
{
|
||||
it_vm->second += " " + vatt->vector_value("POLL");
|
||||
}
|
||||
else
|
||||
{
|
||||
found.insert(make_pair(vmid, vatt->vector_value("POLL")));
|
||||
}
|
||||
found.insert(make_pair(vmid, vatt->vector_value("POLL")));
|
||||
}
|
||||
else if ( it_vm != found.end() )
|
||||
{
|
||||
it_vm->second += " " + vatt->vector_value("POLL");
|
||||
}
|
||||
else //Bad, known but should not be here
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user