diff options
author | Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com> | 2012-11-13 13:54:38 +0100 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-11-15 09:01:53 -0700 |
commit | ca7f58d203971b219bb965f20500cf463fdbed58 (patch) | |
tree | 5e5b32770fb96439b0b836c063cdb30e14c3fdd4 /generator.py | |
parent | 15cfee2f5075cd6e3a8b57c0176cb8580caace48 (diff) | |
download | libvirt-python-v9-ca7f58d203971b219bb965f20500cf463fdbed58.tar.gz libvirt-python-v9-ca7f58d203971b219bb965f20500cf463fdbed58.tar.xz libvirt-python-v9-ca7f58d203971b219bb965f20500cf463fdbed58.zip |
python: Use virNodeGetCPUMap where possible
Modified the places where virNodeGetInfo was used for the purpose
of obtaining the maximum node CPU number. Transparently falling
back to virNodeGetInfo in case of failure.
Wrote a utility function getPyNodeCPUCount for that purpose.
Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Diffstat (limited to 'generator.py')
0 files changed, 0 insertions, 0 deletions