Piotr Kliczewski has submitted this change and it was merged.
Change subject: restapi: Populate "placement_policy.hosts" even with only one
host
......................................................................
restapi: Populate "placement_policy.hosts" even with only one host
Currently the "placement_policy.hosts" element is populated only if the
VM is pinned to 2 or more hosts. When it is pinned to only one host the
element isn't populated, only "placement_policy.host" is populated. This
patch changes the RESTAPI so that the multiple hosts will be always
populated, even if there is only one host.
Change-Id: I1819a1a2a35ca216071e225c319fb4423d7c3629
Bug-Url:
https://bugzilla.redhat.com/1275733
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Dudi Maroshi: Looks good to me, but someone else must approve
Juan Hernandez: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/47793
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1819a1a2a35ca216071e225c319fb4423d7c3629
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Dudi Maroshi <dudi(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: automation(a)ovirt.org