mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-15 08:23:48 +03:00
Fix typo "informations" -> "information" (Atsushi SAKAI and
Saori FUKUTA).
This commit is contained in:
@@ -85,7 +85,7 @@ class libvirtError(Exception):
|
||||
def registerErrorHandler(f, ctx):
|
||||
"""Register a Python written function to for error reporting.
|
||||
The function is called back as f(ctx, error), with error
|
||||
being a list of informations about the error being raised.
|
||||
being a list of information about the error being raised.
|
||||
Returns 1 in case of success."""
|
||||
return libvirtmod.virRegisterErrorHandler(f,ctx)
|
||||
|
||||
|
||||
@@ -34,13 +34,13 @@
|
||||
<arg name='uuid' type='const unsigned char *' info='the UUID string for the network, must be 16 bytes'/>
|
||||
</function>
|
||||
<function name='virDomainGetInfo' file='python'>
|
||||
<info>Extract informations about a domain. Note that if the connection used to get the domain is limited only a partial set of the informations can be extracted.</info>
|
||||
<return type='int *' info='the list of informations or None in case of error'/>
|
||||
<info>Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.</info>
|
||||
<return type='int *' info='the list of information or None in case of error'/>
|
||||
<arg name='domain' type='virDomainPtr' info='a domain object'/>
|
||||
</function>
|
||||
<function name='virNodeGetInfo' file='python'>
|
||||
<info>Extract hardware informations about the Node.</info>
|
||||
<return type='int *' info='the list of informations or None in case of error'/>
|
||||
<info>Extract hardware information about the Node.</info>
|
||||
<return type='int *' info='the list of information or None in case of error'/>
|
||||
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
|
||||
</function>
|
||||
<function name='virDomainGetUUID' file='python'>
|
||||
|
||||
@@ -15,14 +15,14 @@ if conn == None:
|
||||
try:
|
||||
(model, memory, cpus, mhz, nodes, socket, cores, threads) = conn.getInfo()
|
||||
except:
|
||||
print 'Failed to extract the current node informations'
|
||||
print 'Failed to extract the current node information'
|
||||
sys.exit(1)
|
||||
|
||||
print "Xen running on %d %s processors at %d MHz, %d MBytes of memory" % (
|
||||
cpus, model, mhz, memory)
|
||||
|
||||
if cpus > nodes * socket * cores * threads:
|
||||
print "Erroneous CPU informations"
|
||||
print "Erroneous CPU information"
|
||||
sys.exit(1)
|
||||
|
||||
if cpus < nodes * socket * cores * threads:
|
||||
|
||||
Reference in New Issue
Block a user