incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject [2/2] git commit: CLOUDSTACK-546:Guest vms which are in expunging state should not be displayed in UI:Fixed by changing the response to blank in case of an expunging state
Date Tue, 27 Nov 2012 01:55:33 GMT
CLOUDSTACK-546:Guest vms which are in expunging state should not be displayed in UI:Fixed by
changing the response to blank in case of an expunging state


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/8d440094
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8d440094
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8d440094

Branch: refs/heads/master
Commit: 8d4400946d35dee289563b3a328bd764a190b0e4
Parents: 17b11d7
Author: Pranav Saxena <pranav.saxena@citrix.com>
Authored: Tue Nov 27 07:23:20 2012 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Tue Nov 27 07:23:20 2012 +0530

----------------------------------------------------------------------
 ui/scripts/instances.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8d440094/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index 68e081e..e638637 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -203,11 +203,19 @@
           data: data,          
           success: function(json) {
             var items = json.listvirtualmachinesresponse.virtualmachine;
+            var i=0;
+            for( i=0;i< items.length;i++){
+              if(items[i].state == 'Expunging')
+                args.response.success ({
 
+              });
+            else {
             args.response.success({
               actionFilter: vmActionfilter,
-              data: items
-            });
+              data: items[i]
+             });
+            }
+           }
           }
         });
       },


Mime
View raw message