Vitor de Lima has uploaded a new change for review.

Change subject: webadmin: Fix balloon while creating VMs from snapshots
......................................................................

webadmin: Fix balloon while creating VMs from snapshots

During the creation of VMs from snapshots, the memory ballooning device
was always created even when the original VM had it disabled.

This patch fixes this by passing to the AddVmFromSnapshot command the
state of the ballooning device from the original VM.

Change-Id: I263abb8f3b170e6668e2e93b79700848bf056b57
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1152659
Signed-off-by: Vitor de Lima <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/18/34418/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
index bd97d1b..12e036e 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
@@ -716,6 +716,7 @@
         setupAddVmFromSnapshotParameters(parameters);
         
parameters.setConsoleEnabled(model.getIsConsoleDeviceEnabled().getEntity());
         
parameters.setVirtioScsiEnabled(model.getIsVirtioScsiEnabled().getEntity());
+        
parameters.setBalloonEnabled(model.getMemoryBalloonDeviceEnabled().getEntity());
 
         model.startProgress(null);
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I263abb8f3b170e6668e2e93b79700848bf056b57
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vitor de Lima <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to