Shahar Havivi has uploaded a new change for review.

Change subject: restapi: Update VM pool fail with NPE
......................................................................

restapi: Update VM pool fail with NPE

Need to set the SingleQxlPci when editing pool from Rest.

Bug-Url: https://bugzilla.redhat.com/1006884
Change-Id: I989fdf6816095c4d607c94331f54f4effb10f03e
Signed-off-by: Shahar Havivi <shav...@redhat.com>
---
M 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmPoolResource.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/42/19142/1

diff --git 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmPoolResource.java
 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmPoolResource.java
index 2a24500..8f3573e 100644
--- 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmPoolResource.java
+++ 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmPoolResource.java
@@ -126,6 +126,7 @@
                                                 new 
GetVmTemplateParameters(vm.getId()),
                                                 vm.getId().toString());
                 vm.getStaticData().setMemSizeMb(template.getMemSizeMb());
+                vm.getStaticData().setSingleQxlPci(template.getSingleQxlPci());
             }
 
             final AddVmPoolWithVmsParameters parameters = new 
AddVmPoolWithVmsParameters(entity, vm, size, -1);


-- 
To view, visit http://gerrit.ovirt.org/19142
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I989fdf6816095c4d607c94331f54f4effb10f03e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <shav...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to