mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
Added missing import dbus.glib to fix hang in dbus service
This commit is contained in:
parent
536c63d00d
commit
c146bdb54c
@ -22,6 +22,7 @@
|
||||
import gtk
|
||||
|
||||
import dbus
|
||||
import dbus.glib
|
||||
import dbus.service
|
||||
|
||||
from os import getcwd
|
||||
@ -80,8 +81,8 @@ def main():
|
||||
else:
|
||||
managerProxy = bus.get_object("com.redhat.virt.manager", "/com/redhat/virt/manager")
|
||||
managerObj = dbus.Interface(managerProxy, "com.redhat.virt.manager")
|
||||
|
||||
if options.uri != None:
|
||||
print "Asking existing instance to open URI '" + str(options.uri) + "'"
|
||||
managerObj.show_host_summary(options.uri)
|
||||
else:
|
||||
managerObj.show_connect()
|
||||
|
Loading…
Reference in New Issue
Block a user