mirror of
https://github.com/ansible/awx.git
synced 2026-04-08 19:49:22 -02:30
skip events w/ empty stdout when generating stdout downloads
see: https://github.com/ansible/tower/issues/3677
This commit is contained in:
@@ -1031,7 +1031,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
fd.write = lambda s: _write(smart_text(s))
|
fd.write = lambda s: _write(smart_text(s))
|
||||||
|
|
||||||
cursor.copy_expert(
|
cursor.copy_expert(
|
||||||
"copy (select stdout from {} where {}={} order by start_line) to stdout".format(
|
"copy (select stdout from {} where {}={} and stdout != '' order by start_line) to stdout".format(
|
||||||
self._meta.db_table + 'event',
|
self._meta.db_table + 'event',
|
||||||
self.event_parent_key,
|
self.event_parent_key,
|
||||||
self.id
|
self.id
|
||||||
|
|||||||
Reference in New Issue
Block a user