[PATCH python 2/5] libvirt_qemu/lxc: fix a namespace issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marc Hartmayer <mhartmay@xxxxxxxxxxxxxxxxxx>

Signed-off-by: Marc Hartmayer <mhartmay@xxxxxxxxxxxxxxxxxx>
Reviewed-by: Bjoern Walk <bwalk@xxxxxxxxxxxxxxxxxx>
Reviewed-by: Boris Fiuczynski <fiuczy@xxxxxxxxxxxxxxxxxx>
---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux