From 3b17e049c9929a8879c00743874f2d7a9c98ac64 Mon Sep 17 00:00:00 2001 From: Nathan Bird Date: Wed, 4 Apr 2012 17:55:09 -0400 Subject: [PATCH] console: fix logic in need_tunnel for non-local connections. (crobinso: drop code reformatting, add Nathan to AUTHORS) --- AUTHORS | 1 + src/virtManager/console.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index eacbde7b5..024edc5f2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -78,6 +78,7 @@ Further patches have been submitted by: Deepak C Shetty Brian J. Murrell Tuomas Jormola + Nathan Bird <...send a patch & get your name here...> diff --git a/src/virtManager/console.py b/src/virtManager/console.py index 46d8fdec9..cfdf2c14b 100644 --- a/src/virtManager/console.py +++ b/src/virtManager/console.py @@ -73,7 +73,7 @@ class ConnectionInfo(object): self._connhost, self._connport = self._connhost.split(":", 1) def need_tunnel(self): - if self.gaddr is not "127.0.0.1": + if self.gaddr != "127.0.0.1": return False return self.transport in ["ssh", "ext"]