mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
python: remove virConnectGetCPUModelNames from globals
Commit de51dc9c9a
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:
parent
09f2395217
commit
6a8b8ae41d
@ -250,7 +250,6 @@ lxc_functions_failed = []
|
||||
qemu_functions_failed = []
|
||||
functions_skipped = [
|
||||
"virConnectListDomains",
|
||||
"virConnectGetCPUModelNames",
|
||||
]
|
||||
lxc_functions_skipped = []
|
||||
qemu_functions_skipped = []
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user