diff --git a/lib/ansible/connection.py b/lib/ansible/connection.py index ca85cdc1b9e..6192eba4a85 100644 --- a/lib/ansible/connection.py +++ b/lib/ansible/connection.py @@ -51,7 +51,7 @@ class Connection(object): def connect(self, host, port=None): conn = None if self.transport == 'local' and self._LOCALHOSTRE.search(host): - conn = LocalConnection(self.runner, host, None) + conn = LocalConnection(self.runner, host) elif self.transport == 'paramiko': conn = ParamikoConnection(self.runner, host, port) if conn is None: