From: Marc Hartmayer <mhart...@linux.vnet.ibm.com>

Signed-off-by: Marc Hartmayer <mhart...@linux.vnet.ibm.com>
Reviewed-by: Bjoern Walk <bw...@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiu...@linux.vnet.ibm.com>
---
 generator.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/generator.py b/generator.py
index 66c53d11d399..a0fc720ed87b 100755
--- a/generator.py
+++ b/generator.py
@@ -1896,7 +1896,7 @@ def qemuBuildWrappers(module):
         if ret[0] != "void":
             fd.write("    if ret is None: raise libvirt.libvirtError('" + name 
+ "() failed')\n")
             if ret[0] == "virDomainPtr":
-                fd.write("    __tmp = virDomain(" + conn + ",_obj=ret)\n")
+                fd.write("    __tmp = libvirt.virDomain(" + conn + ", 
_obj=ret)\n")
                 fd.write("    return __tmp\n")
             else:
                 fd.write("    return ret\n")
@@ -2011,7 +2011,7 @@ def lxcBuildWrappers(module):
         if ret[0] != "void":
             fd.write("    if ret is None: raise libvirt.libvirtError('" + name 
+ "() failed')\n")
             if ret[0] == "virDomainPtr":
-                fd.write("    __tmp = virDomain(" + conn + ",_obj=ret)\n")
+                fd.write("    __tmp = libvirt.virDomain(" + conn + ", 
_obj=ret)\n")
                 fd.write("    return __tmp\n")
             else:
                 fd.write("    return ret\n")
-- 
2.13.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to