Fix a typo

CanUseForDeploy() didn't return correct result due to this
This commit is contained in:
Sheng Yang 2013-02-08 14:19:24 -08:00
parent 931372e5ca
commit 0ea19fc2aa
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public class UserIpv6AddressDaoImpl extends GenericDaoBase<UserIpv6AddressVO, Lo
CountFreePublicIps = createSearchBuilder(Long.class);
CountFreePublicIps.select(null, Func.COUNT, null);
CountFreePublicIps.and("networkId", CountFreePublicIps.entity().getSourceNetworkId(), SearchCriteria.Op.EQ);
CountFreePublicIps.and("vlanId", CountFreePublicIps.entity().getSourceNetworkId(), SearchCriteria.Op.EQ);
CountFreePublicIps.and("vlanId", CountFreePublicIps.entity().getVlanId(), SearchCriteria.Op.EQ);
CountFreePublicIps.done();
}