[Kimchi-devel] [[kimchi] PATCH] Bugfix 782: Fix creating storage pools

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Wed Dec 2 19:27:26 UTC 2015


Reviewed-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
Tested-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>

On 12/02/2015 11:59 AM, Jose Ricardo Ziviani wrote:
>   - Javascript code was getting wrong values from storage pool form, so
>     it was not possible create any storage pools.
>
> Signed-off-by: Jose Ricardo Ziviani <joserz at linux.vnet.ibm.com>
> ---
>   ui/js/src/kimchi.storagepool_add_main.js | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/ui/js/src/kimchi.storagepool_add_main.js b/ui/js/src/kimchi.storagepool_add_main.js
> index 39c0ac7..39b2cb7 100644
> --- a/ui/js/src/kimchi.storagepool_add_main.js
> +++ b/ui/js/src/kimchi.storagepool_add_main.js
> @@ -360,7 +360,8 @@ kimchi.addPool = function(event) {
>       if (kimchi.validateForm()) {
>           var formData = $('#form-pool-add').serializeObject();
>           delete formData.authname;
> -        var poolType = $('#poolTypeId').selectMenu('value');
> +        var poolType = $('#poolTypeInputId').val();
> +        formData.type = poolType;
>           if (poolType === 'dir') {
>               formData.path = $('#pathId').val();
>           } else if (poolType === 'logical') {
> @@ -423,4 +424,4 @@ kimchi.addPool = function(event) {
>               storagePoolAddingFunc();
>           }
>       }
> -};
> \ No newline at end of file
> +};




More information about the Kimchi-devel mailing list