summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2008-11-25 10:44:52 +0000
committerDaniel P. Berrange <berrange@redhat.com>2008-11-25 10:44:52 +0000
commit3385b9fde5918b119edeed12927e78f2b5900d89 (patch)
treef60f036a6b11c81cf04cda6269c43fddd0ae8e98
parentd46de7156795fa41646e3f8f31cc0e75a6febc8a (diff)
downloadlibvirt-python-v6-3385b9fde5918b119edeed12927e78f2b5900d89.tar.gz
libvirt-python-v6-3385b9fde5918b119edeed12927e78f2b5900d89.tar.xz
libvirt-python-v6-3385b9fde5918b119edeed12927e78f2b5900d89.zip
Support domain lifecycle events for Xen (Ben Guthro & Daniel Berrange)v0.5.1v0.5.0LIBVIRT_0_5_1LIBVIRT_0_5_0
-rw-r--r--libvir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvir.c b/libvir.c
index ca1e890..e071712 100644
--- a/libvir.c
+++ b/libvir.c
@@ -1577,7 +1577,8 @@ getLibvirtModuleObject (void) {
return libvirt_module;
// PyImport_ImportModule returns a new reference
- libvirt_module = PyImport_ImportModule("libvirt");
+ /* Bogus (char *) cast for RHEL-5 python API brokenness */
+ libvirt_module = PyImport_ImportModule((char *)"libvirt");
if(!libvirt_module) {
#if DEBUG_ERROR
printf("%s Error importing libvirt module\n", __FUNCTION__);