volumes.add(ref.getResourceUuid());
} else if (VolumeSnapshotVO.class.getSimpleName().equals(ref.getResourceType())) {
snapshots.add(ref.getResourceUuid());
}
}
<BUG>UpdateQuery uq = UpdateQuery.New();

uq.entity(ImageCacheVO.class);</BUG>
uq.condAnd(ImageCacheVO_.primaryStorageUuid, Op.EQ, self.getUuid());
uq.condAnd(ImageCacheVO_.installUrl, Op.LIKE, String.format("%%%s%%", hostUuid));

volumes.add(ref.getResourceUuid());
} else if (VolumeSnapshotVO.class.getSimpleName().equals(ref.getResourceType())) {
snapshots.add(ref.getResourceUuid());
}
}
UpdateQuery uq = UpdateQuery.New(ImageCacheVO.class);
uq.condAnd(ImageCacheVO_.primaryStorageUuid, Op.EQ, self.getUuid());
uq.condAnd(ImageCacheVO_.installUrl, Op.LIKE, String.format("%%%s%%", hostUuid));
