From a39169ff16797d3eac929cf39fdb2da8cf06dbdb Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 29 Jul 2019 16:18:23 +0100 Subject: [PATCH] [linear2] fix mitogen_shutdown_all service context access --- tests/ansible/lib/action/mitogen_shutdown_all.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ansible/lib/action/mitogen_shutdown_all.py b/tests/ansible/lib/action/mitogen_shutdown_all.py index c28d9d4b..59191450 100644 --- a/tests/ansible/lib/action/mitogen_shutdown_all.py +++ b/tests/ansible/lib/action/mitogen_shutdown_all.py @@ -23,9 +23,10 @@ class ActionModule(ActionBase): } self._connection._connect() + binding = self._connection.get_binding() return { 'changed': True, - 'result': self._connection.parent.call_service( + 'result': binding.get_service_context().call_service( service_name='ansible_mitogen.services.ContextService', method_name='shutdown_all', )