Tomas Jelinek has uploaded a new change for review.

Change subject: engine: can not change template vm type
......................................................................

engine: can not change template vm type

Edit template->change vm type from server to desktop (or opposite).
It failed on: VMT_CANNOT_UPDATE_ILLEGAL_FIELD

Fixed by completing this field to the VmTemplateHandler.

Change-Id: Ie1267726ff7d57351caedd773542cba65e0eca1d
Bug-Url: https://bugzilla.redhat.com/1000964
Signed-off-by: Tomas Jelinek <tjeli...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmTemplateHandler.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/22/18522/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmTemplateHandler.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmTemplateHandler.java
index 7962930..0182766 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmTemplateHandler.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmTemplateHandler.java
@@ -36,7 +36,7 @@
                 "isoPath", "diskImageMap", "defaultDisplayType", "priority", 
"autoStartup", "stateless",
                 "initrdUrl", "kernelUrl", "kernelParams", "images", 
"interfaces", "quotaId", "quotaName",
                 "quotaEnforcementType", "migrationSupport", 
"dedicatedVmForVds", "smartcardEnabled","dbGeneration", "deleteProtected",
-                "quotaDefault", "tunnelMigration", "vncKeyboardLayout", 
"runAndPause", "singleQxlPci", "cpuShares"
+                "quotaDefault", "tunnelMigration", "vncKeyboardLayout", 
"runAndPause", "singleQxlPci", "cpuShares", "vmType"
         });
     }
 


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

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

Reply via email to