[Kimchi-devel] [PATCH] Bug 539 Partial Fix: Enhance Error Handling

huoyuxin at linux.vnet.ibm.com huoyuxin at linux.vnet.ibm.com
Thu Dec 11 08:01:32 UTC 2014


From: Yu Xin Huo <huoyuxin at linux.vnet.ibm.com>

Signed-off-by: Yu Xin Huo <huoyuxin at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.guest_main.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ui/js/src/kimchi.guest_main.js b/ui/js/src/kimchi.guest_main.js
index 21caf1b..611d8c7 100644
--- a/ui/js/src/kimchi.guest_main.js
+++ b/ui/js/src/kimchi.guest_main.js
@@ -211,6 +211,7 @@ kimchi.listVmsAuto = function() {
                 if(kimchi.trackingTasks.indexOf(tasks[i].id)==-1)
                     kimchi.trackTask(tasks[i].id, null, function(err){
                         kimchi.message.error(err.message);
+                        kimchi.listVmsAuto();
                     }, null);
             }
         }, null, true);
@@ -345,7 +346,12 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu) {
                 confirm : i18n['KCHAPI6002M'],
                 cancel : i18n['KCHAPI6003M']
             }, function() {
-                kimchi.cloneGuest(guest, function(data){
+                kimchi.cloneGuest(guest, function(task){
+                    if(kimchi.trackingTasks.indexOf(task.id)==-1)
+                        kimchi.trackTask(task.id, null, function(err){
+                            kimchi.message.error(err.message);
+                            kimchi.listVmsAuto();
+                        }, null);
                     kimchi.listVmsAuto();
                 });
             }, null);
-- 
1.7.1




More information about the Kimchi-devel mailing list