Allow explicit request of the local connection.

This commit is contained in:
Michael DeHaan 2012-04-07 14:51:00 -04:00
parent eed4a2b717
commit 6749903e57

View file

@ -41,7 +41,7 @@ class Connection(object):
def connect(self, host):
conn = None
if self._LOCALHOSTRE.search(host):
if self.transport == 'local' or self._LOCALHOSTRE.search(host):
conn = LocalConnection(self.runner, host)
elif self.transport == 'paramiko':
conn = ParamikoConnection(self.runner, host)