Commit 6749903e by Michael DeHaan

Allow explicit request of the local connection.

parent eed4a2b7
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment