Fix check for whether we've got any existing connections on startup

This commit is contained in:
Daniel P. Berrange 2007-08-29 12:26:56 -04:00
parent 00b17324be
commit 7c29de8b85

View File

@ -130,7 +130,7 @@ def show_engine(engine, show, uri, uuid):
engine.show_console(uri, uuid)
elif show=='summary' or uri:
engine.connect_to_uri(uri)
elif engine.config.get_connections() != None:
elif engine.config.get_connections() != None and len(engine.config.get_connections()) > 0:
engine.load_stored_uris()
else:
tryuri = None