ansible: better planner logging, try again

pull/193/head
David Wilson 7 years ago
parent b4bb1c5a2a
commit f4d791662e

@ -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:

@ -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 $@ $<

Loading…
Cancel
Save