Commit 74468abf authored by David Wilson's avatar David Wilson

ansible: fix syntax error

parent 1fb848b5
...@@ -50,7 +50,7 @@ class Connection(ansible.plugins.connection.ConnectionBase): ...@@ -50,7 +50,7 @@ class Connection(ansible.plugins.connection.ConnectionBase):
def _connect_local(self): def _connect_local(self):
return mitogen.service.call(self.parent, 500, { return mitogen.service.call(self.parent, 500, {
'method': 'local', 'method': 'local',
} })
def _connect_ssh(self): def _connect_ssh(self):
return mitogen.service.call(self.parent, 500, cast({ return mitogen.service.call(self.parent, 500, cast({
...@@ -83,7 +83,7 @@ class Connection(ansible.plugins.connection.ConnectionBase): ...@@ -83,7 +83,7 @@ class Connection(ansible.plugins.connection.ConnectionBase):
if self._play_context.connection == 'local': if self._play_context.connection == 'local':
host = self._connect_local() host = self._connect_local()
else: else:
host = self._connect_ssh(self) host = self._connect_ssh()
if not self._play_context.become: if not self._play_context.become:
self.context = host self.context = 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