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

F OpenNebula/one#6474: Add host ID for VMs with resched flag (#2905)

(cherry picked from commit b782671690563e70327a88d73e320a5ef24fe47c)
This commit is contained in:
Pavel Czerný 2024-01-24 11:55:09 +01:00 committed by Tino Vázquez
parent fc19a90f68
commit 97c7c93933
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -781,6 +781,11 @@ void VirtualMachineXML::to_json(json &vm_json)
vm_json["CAPACITY"] = req;
if (is_resched() || is_active())
{
vm_json["HOST_ID"] = get_hid();
}
// -------------------------------------------------------------------------
// Add custom attributes
// -------------------------------------------------------------------------