DaanHoogland commented on code in PR #6781:
URL: https://github.com/apache/cloudstack/pull/6781#discussion_r996963085
##########
server/src/main/java/com/cloud/network/NetworkServiceImpl.java:
##########
@@ -4697,6 +4709,13 @@ public PhysicalNetworkTrafficType
addTrafficTypeToPhysicalNetwork(Long physicalN
}
}
+ // Check if there are more than 1 physical network with null tags in
same traffic type.
+ // If so then dont allow to add traffic type.
+ List<String> tags = network.getTags();
+ if (tags == null || tags.size() == 0) {
Review Comment:
```suggestion
CollectionUtils.isEmpty(tags) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]