Skip to content

Commit 00715c9

Browse files
committed
Displaying ACL name as None if acl is not associated with a tier
1 parent b5148af commit 00715c9

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

ui/scripts/vpc.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,8 @@
27462746
async: true,
27472747
success: function(json) {
27482748
var jsonObj = json.listnetworksresponse.network[0];
2749-
2749+
if(jsonObj.aclid != null){
2750+
27502751
$.ajax({
27512752
url:createURL("listNetworkACLLists&id=" + jsonObj.aclid),
27522753
dataType:"json",
@@ -2763,6 +2764,16 @@
27632764
args.response.error(parseXMLHttpResponse(json));
27642765
}
27652766
});
2767+
}
2768+
2769+
else{
2770+
args.response.success({
2771+
actionFilter: cloudStack.actionFilter.guestNetwork,
2772+
data:$.extend(jsonObj,{aclname:'None'})
2773+
2774+
});
2775+
2776+
}
27662777
}
27672778
});
27682779
}

0 commit comments

Comments
 (0)