mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
Merge pull request #6645 from ryanpetrello/some-more-iso-cleanup
more ansible runner isolated cleanup Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
88d6dd96fa
@ -268,13 +268,6 @@ class IsolatedManager(object):
|
||||
# in the final sync
|
||||
self.consume_events()
|
||||
|
||||
# emit an EOF event
|
||||
event_data = {
|
||||
'event': 'EOF',
|
||||
'final_counter': len(self.handled_events)
|
||||
}
|
||||
self.event_handler(event_data)
|
||||
|
||||
return status, rc
|
||||
|
||||
def consume_events(self):
|
||||
@ -420,8 +413,4 @@ class IsolatedManager(object):
|
||||
status, rc = self.dispatch(playbook, module, module_args)
|
||||
if status == 'successful':
|
||||
status, rc = self.check()
|
||||
else:
|
||||
# emit an EOF event
|
||||
event_data = {'event': 'EOF', 'final_counter': 0}
|
||||
self.event_handler(event_data)
|
||||
return status, rc
|
||||
|
||||
@ -1466,7 +1466,7 @@ class BaseTask(object):
|
||||
params.get('module'),
|
||||
module_args,
|
||||
ident=str(self.instance.pk))
|
||||
self.event_ct = len(isolated_manager_instance.handled_events)
|
||||
self.finished_callback(None)
|
||||
else:
|
||||
res = ansible_runner.interface.run(**params)
|
||||
status = res.status
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user