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

[virt-tools-list] [PATCH 1/2] fix argument error when initializing LibvirtGlib



Traceback (most recent call last):
  File "./virt-manager", line 351, in <module>
    main()
  File "./virt-manager", line 332, in main
    LibvirtGLib.init(None)
  File "/usr/lib64/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: init() takes exactly 2 arguments (1 given)

---
 virt-manager | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virt-manager b/virt-manager
index 0b8d58b..de80342 100755
--- a/virt-manager
+++ b/virt-manager
@@ -329,7 +329,7 @@ def main():
                               "disabling DBus service")
 
     # Hook libvirt events into glib main loop
-    LibvirtGLib.init(None)
+    LibvirtGLib.init(0, "")
     LibvirtGLib.event_register()
 
     # At this point we're either starting a brand new controlling instance,
-- 
1.7.11.2


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