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:
parent
fc19a90f68
commit
97c7c93933
@ -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
|
||||
// -------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user