diff --git a/ansible_mitogen/planner.py b/ansible_mitogen/planner.py index 167aa2be..a613cde3 100644 --- a/ansible_mitogen/planner.py +++ b/ansible_mitogen/planner.py @@ -181,7 +181,6 @@ class BinaryPlanner(Planner): runner_name = 'BinaryRunner' def detect(self, invocation): - print 'DERP [[[[%s]]]]' % (invocation.module_source[:1024].encode('base64'),) return module_common._is_binary(invocation.module_source) def plan(self, invocation, **kwargs): @@ -357,7 +356,8 @@ def _do_invoke(invocation): for klass in _planners: planner = klass() if planner.detect(invocation): - LOG.debug('%r accepted %r', planner, invocation.module_name) + LOG.debug('%r accepted %r (filename %r)', planner, + invocation.module_name, invocation.module_path) break LOG.debug('%r rejected %r', planner, invocation.module_name) else: diff --git a/tests/ansible/Makefile b/tests/ansible/Makefile index 64242baa..d9bdc521 100644 --- a/tests/ansible/Makefile +++ b/tests/ansible/Makefile @@ -3,8 +3,8 @@ all: \ lib/modules/custom_binary_producing_junk \ lib/modules/custom_binary_producing_json -lib/modules/custom_binary_producing_junk: lib/modules/src/custom_binary_producing_junk.c +lib/modules/custom_binary_producing_junk: lib/modules.src/custom_binary_producing_junk.c $(CC) -o $@ $< -lib/modules/custom_binary_producing_json: lib/modules/src/custom_binary_producing_json.c +lib/modules/custom_binary_producing_json: lib/modules.src/custom_binary_producing_json.c $(CC) -o $@ $< diff --git a/tests/ansible/lib/modules/src/custom_binary_producing_json.c b/tests/ansible/lib/modules.src/custom_binary_producing_json.c similarity index 100% rename from tests/ansible/lib/modules/src/custom_binary_producing_json.c rename to tests/ansible/lib/modules.src/custom_binary_producing_json.c diff --git a/tests/ansible/lib/modules/src/custom_binary_producing_junk.c b/tests/ansible/lib/modules.src/custom_binary_producing_junk.c similarity index 100% rename from tests/ansible/lib/modules/src/custom_binary_producing_junk.c rename to tests/ansible/lib/modules.src/custom_binary_producing_junk.c