DaanHoogland commented on code in PR #7877:
URL: https://github.com/apache/cloudstack/pull/7877#discussion_r1298227941
##########
server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java:
##########
@@ -618,7 +616,7 @@ protected List<HypervisorType> getHypervisors(final
RouterDeploymentDefinition r
throw new InsufficientServerCapacityException("Unable to create
virtual router, there are no clusters in the zone." +
getNoHypervisorsErrMsgDetails(),
DataCenter.class, dest.getDataCenter().getId());
}
- return hypervisors;
+ return new ArrayList(new LinkedHashSet<>(hypervisors));
Review Comment:
it is strange that `hypervisors` is not a `Set` in the first place, but this
will work.
--
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]