viewers: Don't try to use SSH tunnels in spice local case

Regressed with the recent tunnel cleanups
This commit is contained in:
Cole Robinson 2015-04-12 11:06:15 -04:00
parent acebd1248c
commit 2ca72d1117
1 changed files with 2 additions and 3 deletions

View File

@ -664,9 +664,8 @@ class SpiceViewer(Viewer):
ignore = val
def _set_password(self, cred):
self._spice_session.set_property("password", cred)
if self._tunnels:
fd = self._tunnels.open_new()
self._spice_session.open_fd(fd)
if self._ginfo.need_tunnel():
self._spice_session.open_fd(self._tunnels.open_new())
else:
self._spice_session.connect()