From 7d12154a929291b67f83de9d0ff2913f66594dd1 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 11 Mar 2018 01:44:49 +0545 Subject: [PATCH] ansible: fix formatting --- ansible_mitogen/connection.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/ansible_mitogen/connection.py b/ansible_mitogen/connection.py index e3bd802d..b694e33d 100644 --- a/ansible_mitogen/connection.py +++ b/ansible_mitogen/connection.py @@ -157,16 +157,22 @@ class Connection(ansible.plugins.connection.ConnectionBase): Parent Context of the sudo Context. For Ansible, this should always be a Context returned by _connect_ssh(). """ - return mitogen.service.call(self.parent, ContextService.handle, cast({ - 'method': 'sudo', - 'username': self._play_context.become_user, - 'password': self._play_context.password, - 'python_path': python_path or self.python_path, - 'sudo_path': self.sudo_path, - 'via': via, - 'sudo_args': shlex.split(self._play_context.sudo_flags or - self._play_context.become_flags or ''), - })) + return mitogen.service.call( + self.parent, + ContextService.handle, + cast({ + 'method': 'sudo', + 'username': self._play_context.become_user, + 'password': self._play_context.password, + 'python_path': python_path or self.python_path, + 'sudo_path': self.sudo_path, + 'via': via, + 'sudo_args': shlex.split( + self._play_context.sudo_flags or + self._play_context.become_flags or '' + ), + }) + ) def _connect(self): """