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:
parent
db29eb7587
commit
eba387e3b1
@ -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>"
|
||||
|
Loading…
x
Reference in New Issue
Block a user