list: provide python bindings for snapshots
[libvirt-python/ericb.git] / libvirt-override-virDomainSnapshot.py
blob3da7bfd90366d2f469335a6f1c817bd6c7595568
1 def listAllChildren(self, flags):
2 """List all child snapshots and returns a list of snapshot objects"""
3 ret = libvirtmod.virDomainSnapshotListAllChildren(self._o, flags)
4 if ret is None:
5 raise libvirtError("virDomainSnapshotListAllChildren() failed", conn=self)
7 retlist = list()
8 for snapptr in ret:
9 retlist.append(virDomainSnapshot(self, _obj=snapptr))
11 return retlist