maint: consistent whitespace after 'if'
[libvirt-python/ericb.git] / libvirt-override-virDomain.py
blobccc4d5f07ef0a6353252d2d3565aff34b6bf1b06
1 def listAllSnapshots(self, flags):
2 """List all snapshots and returns a list of snapshot objects"""
3 ret = libvirtmod.virDomainListAllSnapshots(self._o, flags)
4 if ret is None:
5 raise libvirtError("virDomainListAllSnapshots() failed", conn=self)
7 retlist = list()
8 for snapptr in ret:
9 retlist.append(virDomainSnapshot(self, _obj=snapptr))
11 return retlist