mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 00:16:49 +00:00
Allow explicit request of the local connection.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user