more gracefully account for undefined stdout

see: https://github.com/ansible/tower/issues/1215
related: https://github.com/ansible/tower/pull/1192#issuecomment-377982131
This commit is contained in:
Ryan Petrello
2018-04-04 08:28:05 -04:00
parent 6c7a7dbbc0
commit 0db24a5c97
2 changed files with 11 additions and 0 deletions

View File

@@ -885,6 +885,7 @@ class BaseTask(LogErrorsTask):
output_replacements = []
extra_update_fields = {}
event_ct = 0
stdout_handle = None
try:
kwargs['isolated'] = isolated_host is not None
self.pre_run_hook(instance, **kwargs)