Arik Hadas has uploaded a new change for review. Change subject: restapi: fix display type setting on add vm ......................................................................
restapi: fix display type setting on add vm On VM creation its display type should be determined according to the display type of the template it is based on. This patch solves a bug that causes every VM that is created using REST to have SPICE as its display type. Change-Id: I6924aee368bc4ae2e61ad77a4cf8fbc28a027ce5 Signed-off-by: Arik Hadas <aha...@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(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/82/17382/1 diff --git a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java index ed676f1..62cb244 100644 --- a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java +++ b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java @@ -88,7 +88,7 @@ staticVm.setAutoStartup(entity.isAutoStartup()); staticVm.setDefaultBootSequence(entity.getDefaultBootSequence()); staticVm.setVmType(entity.getVmType()); - entity.setDefaultDisplayType(entity.getDefaultDisplayType()); + staticVm.setDefaultDisplayType(entity.getDefaultDisplayType()); staticVm.setIsoPath(entity.getIsoPath()); staticVm.setNumOfSockets(entity.getNumOfSockets()); staticVm.setCpuPerSocket(entity.getCpuPerSocket()); -- To view, visit http://gerrit.ovirt.org/17382 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6924aee368bc4ae2e61ad77a4cf8fbc28a027ce5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Arik Hadas <aha...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches