mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
a515aaa9e4
The following four functions have not changed because default arguments have to come after positional arguments. Changing them will break the the binding APIs. migrate(self, dconn, flags, dname, uri, bandwidth): migrate2(self, dconn, dxml, flags, dname, uri, bandwidth): migrateToURI(self, duri, flags, dname, bandwidth): migrateToURI2(self, dconnuri, miguri, dxml, flags, dname, bandwidth):
12 lines
428 B
Python
12 lines
428 B
Python
def listAllSnapshots(self, flags=0):
|
|
"""List all snapshots and returns a list of snapshot objects"""
|
|
ret = libvirtmod.virDomainListAllSnapshots(self._o, flags)
|
|
if ret is None:
|
|
raise libvirtError("virDomainListAllSnapshots() failed", conn=self)
|
|
|
|
retlist = list()
|
|
for snapptr in ret:
|
|
retlist.append(virDomainSnapshot(self, _obj=snapptr))
|
|
|
|
return retlist
|