mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-30 23:41:52 +03:00
Normalize white space
indent by 4 spaces one spaces around assignments Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
@ -10,7 +10,6 @@
|
||||
|
||||
return retlist
|
||||
|
||||
|
||||
def listAllCheckpoints(self, flags=0):
|
||||
"""List all checkpoints and returns a list of checkpoint objects"""
|
||||
ret = libvirtmod.virDomainListAllCheckpoints(self._o, flags)
|
||||
@ -23,7 +22,6 @@
|
||||
|
||||
return retlist
|
||||
|
||||
|
||||
def createWithFiles(self, files, flags=0):
|
||||
"""Launch a defined domain. If the call succeeds the domain moves from the
|
||||
defined to the running domains pools.
|
||||
@ -58,30 +56,35 @@
|
||||
If the VIR_DOMAIN_START_FORCE_BOOT flag is set, then any managed save
|
||||
file for this domain is discarded, and the domain boots from scratch. """
|
||||
ret = libvirtmod.virDomainCreateWithFiles(self._o, files, flags)
|
||||
if ret == -1: raise libvirtError ('virDomainCreateWithFiles() failed', dom=self)
|
||||
if ret == -1:
|
||||
raise libvirtError('virDomainCreateWithFiles() failed', dom=self)
|
||||
return ret
|
||||
|
||||
def fsFreeze(self, mountpoints=None, flags=0):
|
||||
"""Freeze specified filesystems within the guest """
|
||||
ret = libvirtmod.virDomainFSFreeze(self._o, mountpoints, flags)
|
||||
if ret == -1: raise libvirtError ('virDomainFSFreeze() failed', dom=self)
|
||||
if ret == -1:
|
||||
raise libvirtError('virDomainFSFreeze() failed', dom=self)
|
||||
return ret
|
||||
|
||||
def fsThaw(self, mountpoints=None, flags=0):
|
||||
"""Thaw specified filesystems within the guest """
|
||||
ret = libvirtmod.virDomainFSThaw(self._o, mountpoints, flags)
|
||||
if ret == -1: raise libvirtError ('virDomainFSThaw() failed', dom=self)
|
||||
if ret == -1:
|
||||
raise libvirtError('virDomainFSThaw() failed', dom=self)
|
||||
return ret
|
||||
|
||||
def getTime(self, flags=0):
|
||||
"""Extract information about guest time """
|
||||
ret = libvirtmod.virDomainGetTime(self._o, flags)
|
||||
if ret == None: raise libvirtError ('virDomainGetTime() failed', dom=self)
|
||||
if ret == None:
|
||||
raise libvirtError('virDomainGetTime() failed', dom=self)
|
||||
return ret
|
||||
|
||||
def setTime(self, time=None, flags=0):
|
||||
"""Set guest time to the given value. @time is a dict containing
|
||||
'seconds' field for seconds and 'nseconds' field for nanoseconds """
|
||||
ret = libvirtmod.virDomainSetTime(self._o, time, flags)
|
||||
if ret == -1: raise libvirtError ('virDomainSetTime() failed', dom=self)
|
||||
if ret == -1:
|
||||
raise libvirtError('virDomainSetTime() failed', dom=self)
|
||||
return ret
|
||||
|
Reference in New Issue
Block a user