Commit eb59751
authored
list_disk_snapshots.py: look for template snapshots in the chain (#14)
When a VM is created from template with Thin Storage Allocation,
the parent of one of the snapshots will be the template image, thus
not returned in the result set for the list disksnapshots request.
In this case, when requesting snapshots of a disk created this way -
this script returns an error.
This patch takes advantage of the disks/xxx/disksnapshots API with
'include_active' and 'include_template' flags to fetch all the
snapshots required for the chain reconstruction
Bug-Url: https://bugzilla.redhat.com/19005971 parent 72edb70 commit eb59751
1 file changed
+3
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 48 | + | |
63 | 49 | | |
64 | 50 | | |
65 | 51 | | |
66 | 52 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 53 | + | |
| 54 | + | |
70 | 55 | | |
71 | 56 | | |
72 | 57 | | |
| |||
0 commit comments