diff options
author | Doug Goldstein <cardoe@cardoe.com> | 2013-11-21 08:47:08 -0600 |
---|---|---|
committer | Doug Goldstein <cardoe@cardoe.com> | 2013-11-21 08:47:08 -0600 |
commit | 4b6944d3c0ff43683fc310da061fac6e05c57b66 (patch) | |
tree | 7da5142a323195962fe52b1e1df0ba69f3308f9a | |
parent | 9e8b8a824d4b0456640f9069d5603d8b1d42c867 (diff) | |
download | libvirt-python-v7-4b6944d3c0ff43683fc310da061fac6e05c57b66.tar.gz libvirt-python-v7-4b6944d3c0ff43683fc310da061fac6e05c57b66.tar.xz libvirt-python-v7-4b6944d3c0ff43683fc310da061fac6e05c57b66.zip |
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.
-rwxr-xr-x | generator.py | 1 | ||||
-rw-r--r-- | libvirt-override.py | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/generator.py b/generator.py index 87ecf5a..0e86bed 100755 --- a/generator.py +++ b/generator.py @@ -250,7 +250,6 @@ lxc_functions_failed = [] qemu_functions_failed = [] functions_skipped = [ "virConnectListDomains", - "virConnectGetCPUModelNames", ] lxc_functions_skipped = [] qemu_functions_skipped = [] diff --git a/libvirt-override.py b/libvirt-override.py index 3471a43..ccfec48 100644 --- a/libvirt-override.py +++ b/libvirt-override.py @@ -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 |