From c6d42212ddb96a6c13dfaa166827569cb5023ba3 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 20 Sep 2020 16:33:03 -0700 Subject: [PATCH] add some debugging info, was able to run the failed synchronize test locally just fine using test framework, not sure what's going on --- ansible_mitogen/mixins.py | 6 ++++++ tests/ansible/run_ansible_playbook.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ansible_mitogen/mixins.py b/ansible_mitogen/mixins.py index 34e71b63..39228695 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -378,6 +378,12 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase): if module_name == 'ansible.legacy.ping' and type(self).__name__ == 'wait_for_connection': self._connection.context = None + if module_name == 'ansible.posix.synchronize': + print("SYNCHRONIZE") + else: + print("NOT SYNCHRONIZE") + print(type(self._connection)) + self._connection._connect() result = ansible_mitogen.planner.invoke( ansible_mitogen.planner.Invocation( diff --git a/tests/ansible/run_ansible_playbook.py b/tests/ansible/run_ansible_playbook.py index 467eaffc..532a6b93 100755 --- a/tests/ansible/run_ansible_playbook.py +++ b/tests/ansible/run_ansible_playbook.py @@ -4,7 +4,7 @@ import json import os import sys - +from __future__ import print_function GIT_BASEDIR = os.path.dirname( os.path.abspath( @@ -58,4 +58,5 @@ else: args += ['-e', json.dumps(extra)] args += sys.argv[1:] +print(args[0], "--", args) os.execvp(args[0], args)