[Kimchi-devel] [PATCH] UI bug fix: Properly display partitions when extending a logical pool

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Thu Jul 31 18:36:52 UTC 2014


-- 
Reviewed-by: Paulo Vital <pvital at linux.vnet.ibm.com>


On Thu, 2014-07-31 at 15:25 -0300, Aline Manera wrote:
> Commit f7ec8f0e replaced kimchi.template to kimchi.substitute but a
> occurence was not properly updated.
> And it was preventing user to extend a logical pool as any partition
> was displayed.
> Fix it.
> 
> Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
> ---
>  ui/js/src/kimchi.storage_main.js | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ui/js/src/kimchi.storage_main.js b/ui/js/src/kimchi.storage_main.js
> index 49fcc4a..849eb5e 100644
> --- a/ui/js/src/kimchi.storage_main.js
> +++ b/ui/js/src/kimchi.storage_main.js
> @@ -216,7 +216,7 @@ kimchi.initLogicalPoolExtend = function() {
>                  if (data.length > 0) {
>                      for(var i=0;i<data.length;i++){
>                          if (data[i].type === 'part' || data[i].type === 'disk') {
> -                            $('.host-partition', '#logicalPoolExtend').append(kimchi.template($('#logicalPoolExtendTmpl').html(), data[i]));
> +                            $('.host-partition', '#logicalPoolExtend').append(kimchi.substitute($('#logicalPoolExtendTmpl').html(), data[i]));
>                          }
>                      }
>                  } else {




More information about the Kimchi-devel mailing list