Skip to content

Commit

Permalink
Merge pull request ansible#1 from benthomasson/integration_work_ben
Browse files Browse the repository at this point in the history
Fixes cancel_callback to work with async
  • Loading branch information
matburt committed Jul 16, 2018
2 parents c502a2e + 7dac4a9 commit e5b7fd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible_runner/interface.py
Expand Up @@ -50,11 +50,12 @@ def init_runner(**kwargs):
output.set_logfile(logfile)

event_callback_handler = kwargs.pop('event_handler', None)
cancel_callback = kwargs.pop('cancel_callback', None)

rc = RunnerConfig(**kwargs)
rc.prepare()

return Runner(rc, event_handler=event_callback_handler)
return Runner(rc, event_handler=event_callback_handler, cancel_callback=cancel_callback)


def run(**kwargs):
Expand Down

0 comments on commit e5b7fd0

Please sign in to comment.