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

Feature #3264: Add vm name to showback xml body

This commit is contained in:
Carlos Martín 2014-11-05 18:42:43 +01:00
parent db29eb7587
commit eba387e3b1

View File

@ -648,6 +648,7 @@ void VirtualMachinePool::calculate_showback(time_t start_time, time_t end_time)
int gid = 0;
string uname = "";
string gname = "";
string vmname = "";
if (vm != 0)
{
@ -657,6 +658,8 @@ void VirtualMachinePool::calculate_showback(time_t start_time, time_t end_time)
uname = vm->get_uname();
gname = vm->get_gname();
vmname = vm->get_name();
vm->unlock();
}
@ -668,6 +671,7 @@ void VirtualMachinePool::calculate_showback(time_t start_time, time_t end_time)
body << "<SHOWBACK>"
<< "<VMID>" << vmid << "</VMID>"
<< "<VMNAME>" << vmname << "</VMNAME>"
<< "<UID>" << uid << "</UID>"
<< "<GID>" << gid << "</GID>"
<< "<UNAME>" << uname << "</UNAME>"