mirror of https://github.com/apache/cloudstack.git
Bug 13842 Check for snapshots in BackedUp state during the deletion of secondary storage
behalf of: pranav reviewed by: kishan
This commit is contained in:
parent
d71ab32900
commit
59262d67a3
|
|
@ -112,7 +112,7 @@ public class SnapshotDaoImpl extends GenericDaoBase<SnapshotVO, Long> implements
|
|||
public List<SnapshotVO> listByHostId(Filter filter, long hostId ) {
|
||||
SearchCriteria<SnapshotVO> sc = HostIdSearch.create();
|
||||
sc.setParameters("hostId", hostId);
|
||||
sc.setParameters("status", Status.DOWNLOADED);
|
||||
sc.setParameters("status", Snapshot.Status.BackedUp);
|
||||
return listBy(sc, filter);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue