[Kimchi-devel] [PATCH 3/4] reset vm in UI
Daniel H Barboza
danielhb at linux.vnet.ibm.com
Thu Apr 10 14:03:07 UTC 2014
Reviewed-by: Daniel Barboza <danielhb at linux.vnet.ibm.com>
On 04/10/2014 10:04 AM, shaohef at linux.vnet.ibm.com wrote:
> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
>
> The reset in UI is first shutdown VM and then start VM.
>
> Now UI call the reset API directly.
>
> Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
> ---
> ui/js/src/kimchi.api.js | 13 ++-----------
> 1 file changed, 2 insertions(+), 11 deletions(-)
>
> diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
> index 84405b3..a2e869d 100644
> --- a/ui/js/src/kimchi.api.js
> +++ b/ui/js/src/kimchi.api.js
> @@ -221,20 +221,11 @@ var kimchi = {
>
> resetVM : function(vm, suc, err) {
> kimchi.requestJSON({
> - url : kimchi.url + 'vms/' + encodeURIComponent(vm) + '/poweroff',
> + url : kimchi.url + 'vms/' + encodeURIComponent(vm) + '/reset',
> type : 'POST',
> contentType : 'application/json',
> dataType : 'json',
> - success : function() {
> - kimchi.requestJSON({
> - url : kimchi.url + 'vms/' + encodeURIComponent(vm) + '/start',
> - type : 'POST',
> - contentType : 'application/json',
> - dataType : 'json',
> - success : suc,
> - error : err
> - });
> - },
> + success : suc,
> error : err
> });
> },
More information about the Kimchi-devel
mailing list