[Kimchi-devel] [PATCH] [Kimchi] Issue #1059: Not able to save corrected img path after editing img based template which has incorrect img path due to the img is not available.
archus at linux.vnet.ibm.com
archus at linux.vnet.ibm.com
Sun Oct 23 13:28:45 UTC 2016
From: Archana Singh <archus at linux.vnet.ibm.com>
The error was due to invalid additional parameter "vm-image"
passed to template update API.
The vm-image is already passed as "base" paramter in "disks" to update
the vm-image in the template.
So removed "vm-image" parameter from UI and just passed the vm-image
as "base" parameter of "disks" to template update API.
Signed-off-by: Archana Singh <archus at linux.vnet.ibm.com>
---
ui/js/src/kimchi.template_edit_main.js | 4 ----
1 file changed, 4 deletions(-)
diff --git a/ui/js/src/kimchi.template_edit_main.js b/ui/js/src/kimchi.template_edit_main.js
index 31cb8d9..78f25e2 100644
--- a/ui/js/src/kimchi.template_edit_main.js
+++ b/ui/js/src/kimchi.template_edit_main.js
@@ -809,10 +809,6 @@ kimchi.template_edit_main = function() {
data['cdrom'] = $('.tab-content input[name="cdrom"]').val();
}
- if ($('.tab-content .has-changes > input[name="vm-image"]').length) {
- data['vm-image'] = $('.tab-content input[name="vm-image"]').val();
- }
-
if ($("input:checkbox", "#form-template-processor").prop("checked")) {
//Check if maxCpu field has a value
data['cpu_info'] = {
--
2.7.4
More information about the Kimchi-devel
mailing list