1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-04 12:21:57 +03:00

python: remove virConnectGetCPUModelNames from globals

Commit de51dc9c9aed0e615c8b301cccb89f4859324eb0 primarily added
virConnectGetCPUModelNames as libvirt.getCPUModelNames(conn, arch)
instead of libvirt.virConnect.getCPUModelNames(arch) so revert the code
that does the former while leaving the code that does the later.
This commit is contained in:
Doug Goldstein
2013-11-21 08:47:08 -06:00
parent 9e8b8a824d
commit 4b6944d3c0
2 changed files with 0 additions and 12 deletions

View File

@ -207,14 +207,3 @@ def virEventAddTimeout(timeout, cb, opaque):
ret = libvirtmod.virEventAddTimeout(timeout, cbData)
if ret == -1: raise libvirtError ('virEventAddTimeout() failed')
return ret
def getCPUModelNames(conn, arch, flags=0):
"""
get the list of supported CPU models.
@conn: virConnect connection
@arch: Architecture
@flags: extra flags; not used yet, so callers should always pass 0.
"""
ret = libvirtmod.virConnectGetCPUModelNames(conn._o, arch, flags)
if ret == None: raise libvirtError ('virConnectGetCPUModelNames() failed', conn=self)
return ret