virt-manager: Allow mixing --connect and --test-first-run

To run with just the passed connection, but skip the first run logic.
Useful for UI testing
This commit is contained in:
Cole Robinson 2015-09-06 18:15:16 -04:00
parent 60d6161efc
commit d66b691035

View File

@ -171,7 +171,7 @@ class vmmEngine(vmmGObject):
def add_default_conn(self, manager):
# Only add default if no connections are currently known
if self.config.get_conn_uris():
if self.config.get_conn_uris() or self.uri_at_startup:
return
self.timeout_add(1000, self._add_default_conn, manager)