[Kimchi-devel] [PATCH] Bug fix: Display storage pool types properly

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Wed Oct 28 11:59:36 UTC 2015


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

On Wed, 2015-10-28 at 09:31 -0200, Aline Manera wrote:
> One JS error was preventing the storage pool types to be displayed on
> UI.
> Because the function kimchi.listHostPartitions was not defined due a
> conflict in the Ginger Base patches.
> This patch restores the JS function to fix the issue.
> 
> Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
> ---
>  src/wok/plugins/kimchi/ui/js/src/kimchi.api.js | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/src/wok/plugins/kimchi/ui/js/src/kimchi.api.js
> b/src/wok/plugins/kimchi/ui/js/src/kimchi.api.js
> index 6ffa0df..c55b252 100644
> --- a/src/wok/plugins/kimchi/ui/js/src/kimchi.api.js
> +++ b/src/wok/plugins/kimchi/ui/js/src/kimchi.api.js
> @@ -592,6 +592,17 @@ var kimchi = {
>          });
>      },
> 
> +    listHostPartitions : function(suc, err) {
> +        wok.requestJSON({
> +            url : 'plugins/kimchi/host/partitions',
> +            type : 'GET',
> +            contentType : 'application/json',
> +            dataType : 'json',
> +            success : suc,
> +            error : err
> +        });
> +    },
> +
>      getStorageServers: function(type, suc, err) {
>          var url = 'plugins/kimchi/storageservers?_target_type=' +
> type;
>          wok.requestJSON({




More information about the Kimchi-devel mailing list