mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-10 12:58:27 +03:00
virt-manager: Fix connecting to existing URI via command line
This commit is contained in:
parent
34fa001f4e
commit
0a81c82c44
@ -492,6 +492,10 @@ class vmmEngine(gobject.GObject):
|
||||
gtk.main_quit()
|
||||
|
||||
def add_connection(self, uri, readOnly=None, autoconnect=False):
|
||||
conn = self._check_connection(uri)
|
||||
if conn:
|
||||
return conn
|
||||
|
||||
conn = vmmConnection(self.get_config(), uri, readOnly, self)
|
||||
self.connections[uri] = {
|
||||
"connection": conn,
|
||||
|
Loading…
x
Reference in New Issue
Block a user