xen: Fix volume snapshot deletion when it has child snapshots (#6296)

This commit is contained in:
Pearl Dsilva 2022-04-22 23:06:08 +05:30 committed by GitHub
parent 293517ad72
commit 48f7f10089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ public class SnapshotObject implements SnapshotInfo {
if (vo == null) { if (vo == null) {
return null; return null;
} }
return snapshotFactory.getSnapshot(vo.getId(), store); return snapshotFactory.getSnapshot(vo.getSnapshotId(), store);
} }
@Override @Override

View File

@ -192,9 +192,9 @@ class TestListIdsParams(cloudstackTestCase):
) )
cls._cleanup = [ cls._cleanup = [
cls.snapshot_1,
cls.snapshot_2,
cls.snapshot_3, cls.snapshot_3,
cls.snapshot_2,
cls.snapshot_1,
cls.account, cls.account,
cls.disk_offering, cls.disk_offering,
cls.service_offering cls.service_offering