mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
12 lines
445 B
Python
12 lines
445 B
Python
|
def listAllChildren(self, flags):
|
||
|
"""List all child snapshots and returns a list of snapshot objects"""
|
||
|
ret = libvirtmod.virDomainSnapshotListAllChildren(self._o, flags)
|
||
|
if ret is None:
|
||
|
raise libvirtError("virDomainSnapshotListAllChildren() failed", conn=self)
|
||
|
|
||
|
retlist = list()
|
||
|
for snapptr in ret:
|
||
|
retlist.append(virDomainSnapshot(self, _obj=snapptr))
|
||
|
|
||
|
return retlist
|