Skip to content

Commit

Permalink
Merge pull request #4391 from ryanpetrello/skip-empty-stdout
Browse files Browse the repository at this point in the history
skip events w/ empty stdout when generating stdout downloads

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
  • Loading branch information
softwarefactory-project-zuul[bot] authored Jul 30, 2019
2 parents c7bb0f1 + 79723ce commit 5d6916f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/models/unified_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def result_stdout_raw_handle(self, enforce_max_bytes=True):
fd.write = lambda s: _write(smart_text(s))

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.event_parent_key,
self.id
Expand Down

0 comments on commit 5d6916f

Please sign in to comment.