[libvirt] [glib PATCH 11/16] event-test: LibvirtGLib.init() takes (at maximum) 1 argment

Fabiano Fidêncio fidencio at redhat.com
Mon May 20 08:31:57 UTC 2019


As 2 argments have been passed, whenever we try to run event-test we'd
get:
```
Using uri:qemu:///system
Traceback (most recent call last):
  File "event-test.py", line 62, in <module>
    main()
  File "event-test.py", line 51, in main
    LibvirtGLib.init(0, "")
TypeError: LibvirtGLib.init() takes exactly 1 argument (2 given)
```

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 examples/event-test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/event-test.py b/examples/event-test.py
index 2b25e0a..1f7d97e 100644
--- a/examples/event-test.py
+++ b/examples/event-test.py
@@ -48,7 +48,7 @@ def main():
 
     print "Using uri:" + uri
 
-    LibvirtGLib.init(0, "")
+    LibvirtGLib.init()
     LibvirtGLib.event_register()
     vc = libvirt.open(uri)
 
-- 
2.21.0




More information about the libvir-list mailing list