From 629627b663f7c8d8b4deb159bfb470c84db97e3c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 10 Apr 2015 13:26:54 -0400 Subject: [PATCH] connection: Drop unused open() argument --- virtManager/connection.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/virtManager/connection.py b/virtManager/connection.py index 2b6662874..21ebfb119 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -886,21 +886,15 @@ class vmmConnection(vmmGObject): def _cleanup(self): self.close() - def open(self, sync=False): + def open(self): if not self.is_disconnected(): return self._change_state(self._STATE_CONNECTING) - if sync: - logging.debug("Opening connection synchronously: %s", - self.get_uri()) - self._open_thread() - else: - logging.debug("Scheduling background open thread for " + - self.get_uri()) - self._start_thread(self._open_thread, - "Connect %s" % self.get_uri()) + logging.debug("Scheduling background open thread for " + + self.get_uri()) + self._start_thread(self._open_thread, "Connect %s" % self.get_uri()) def _do_creds_password(self, creds): try: