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

This commit is contained in:
Pranav Saxena 2012-11-27 07:23:20 +05:30
parent 17b11d7356
commit 8d4400946d
1 changed files with 10 additions and 2 deletions

View File

@ -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]
});
}
}
}
});
},