[Kimchi-devel] [PATCH 3/4] reset vm in UI
shaohef at linux.vnet.ibm.com
shaohef at linux.vnet.ibm.com
Thu Apr 10 13:04:11 UTC 2014
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
});
},
--
1.8.5.3
More information about the Kimchi-devel
mailing list