[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.

Lucio Correia luciojhc at linux.vnet.ibm.com
Mon Oct 24 11:16:44 UTC 2016


Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>

On 23/10/2016 11:28, archus at linux.vnet.ibm.com wrote:
> 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'] = {
>


-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list