CS-16002: Fix ACL list view when no networks present

This commit is contained in:
Brian Federle 2012-08-16 14:07:55 -07:00 committed by Alex Huang
parent ca67f898cb
commit b676c04213
1 changed files with 4 additions and 1 deletions

View File

@ -553,8 +553,11 @@
vpcid: args.context.vpc[0].id
},
success: function(json) {
var networks = json.listnetworksresponse.network ?
json.listnetworksresponse.network : [];
args.response.success({
data: $.map(json.listnetworksresponse.network, function(tier) {
data: $.map(networks, function(tier) {
var aclTotal = 0;
// Get ACL total