You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2012/11/27 02:55:33 UTC

[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

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 <pr...@citrix.com>
Authored: Tue Nov 27 07:23:20 2012 +0530
Committer: Pranav Saxena <pr...@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]
+             });
+            }
+           }
           }
         });
       },