1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5003 Added zombies only if it has DEPLOY_ID or VM_NAME (#440)

This commit is contained in:
juanmont 2017-09-02 23:33:44 +02:00 committed by Ruben S. Montero
parent 6b4664537c
commit fb99394e6a

View File

@ -343,21 +343,21 @@ int Host::update_info(Template &tmpl,
// Reported as zombie at least 2 times?
if (prev_tmp_zombie.count(vmid) == 1)
{
string zname;
if (num_zombies++ > 0)
{
zombie << ", ";
}
zname = vatt->vector_value("VM_NAME");
string zname = vatt->vector_value("VM_NAME");
if (zname.empty())
{
zname = vatt->vector_value("DEPLOY_ID");
}
zombie << zname;
if (!zname.empty())
{
if (num_zombies++ > 0)
{
zombie << ", ";
}
zombie << zname;
}
}
}