ravening commented on a change in pull request #3368:
URL: https://github.com/apache/cloudstack/pull/3368#discussion_r526043808
##########
File path: server/src/main/java/com/cloud/server/ManagementServerImpl.java
##########
@@ -1893,7 +1894,8 @@ private boolean hasSuitablePoolsForVolume(final VolumeVO
volume, final Host host
sb.and("vlanDbId", sb.entity().getVlanId(), SearchCriteria.Op.EQ);
sb.and("id", sb.entity().getId(), SearchCriteria.Op.EQ);
sb.and("physicalNetworkId", sb.entity().getPhysicalNetworkId(),
SearchCriteria.Op.EQ);
- sb.and("associatedNetworkIdEq",
sb.entity().getAssociatedWithNetworkId(), SearchCriteria.Op.EQ);
+ sb.and("associatedNetworkId",
sb.entity().getAssociatedWithNetworkId(), SearchCriteria.Op.EQ);
+ sb.and("sourceNetworkId", sb.entity().getSourceNetworkId(),
SearchCriteria.Op.EQ);
Review comment:
@shwstppr any reason why `sourceNetworkId` is chosen instead of
`networkId` parameter?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]