mirror of https://github.com/apache/cloudstack.git
engine-schema,cks: fix finding non removed network vms (#9339)
Fixes #9331 Only those VMs should be considered network VM which have a NIC entry that is not marked removed. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
2cfb541a1d
commit
6a8494be3b
|
|
@ -856,6 +856,7 @@ public class VMInstanceDaoImpl extends GenericDaoBase<VMInstanceVO, Long> implem
|
|||
|
||||
SearchBuilder<NicVO> nicSearch = nicDao.createSearchBuilder();
|
||||
nicSearch.and("networkId", nicSearch.entity().getNetworkId(), SearchCriteria.Op.EQ);
|
||||
nicSearch.and("removed", nicSearch.entity().getRemoved(), SearchCriteria.Op.NULL);
|
||||
|
||||
NetworkTypeSearch = createSearchBuilder();
|
||||
NetworkTypeSearch.and("types", NetworkTypeSearch.entity().getType(), SearchCriteria.Op.IN);
|
||||
|
|
|
|||
Loading…
Reference in New Issue