diff --git a/virtManager/sshtunnels.py b/virtManager/sshtunnels.py index 62c74b2c..97865cda 100644 --- a/virtManager/sshtunnels.py +++ b/virtManager/sshtunnels.py @@ -283,10 +283,12 @@ class SSHTunnels(object): self.unlock() def get_err_output(self): - errout = "" + errstrings = [] for l in self._tunnels: - errout += l.get_err_output() - return errout + e = l.get_err_output().strip() + if e and e not in errstrings: + errstrings.append(e) + return "\n".join(errstrings) def _lock(self): _tunnel_scheduler.lock()