提交 6a8b8ae4 编写于 作者: D Doug Goldstein

python: remove virConnectGetCPUModelNames from globals

Commit de51dc9c 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.
上级 09f23952
...@@ -250,7 +250,6 @@ lxc_functions_failed = [] ...@@ -250,7 +250,6 @@ lxc_functions_failed = []
qemu_functions_failed = [] qemu_functions_failed = []
functions_skipped = [ functions_skipped = [
"virConnectListDomains", "virConnectListDomains",
"virConnectGetCPUModelNames",
] ]
lxc_functions_skipped = [] lxc_functions_skipped = []
qemu_functions_skipped = [] qemu_functions_skipped = []
......
...@@ -207,14 +207,3 @@ def virEventAddTimeout(timeout, cb, opaque): ...@@ -207,14 +207,3 @@ def virEventAddTimeout(timeout, cb, opaque):
ret = libvirtmod.virEventAddTimeout(timeout, cbData) ret = libvirtmod.virEventAddTimeout(timeout, cbData)
if ret == -1: raise libvirtError ('virEventAddTimeout() failed') if ret == -1: raise libvirtError ('virEventAddTimeout() failed')
return ret 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册