mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 20:50:06 -03:30
Fix merge issues on stdout branch
The act of committing a PR that including part of these changes and then reverting it meant that some of the changes from the original branch didn't land in this new PR. This commit adds the missing bits. Lesson learned: Create a new branch when submitting a PR on a previously reverted PR
This commit is contained in:
@@ -519,6 +519,11 @@ class UnifiedJobSerializer(BaseSerializer):
|
||||
ret['elapsed'] = float(ret['elapsed'])
|
||||
return ret
|
||||
|
||||
def get_result_stdout(self, obj):
|
||||
obj_size = obj.result_stdout_size
|
||||
if obj_size > settings.STDOUT_MAX_BYTES_DISPLAY:
|
||||
return "Standard Output too large to display (%d bytes), only download supported for sizes over %d bytes" % (obj_size, settings.STDOUT_MAX_BYTES_DISPLAY)
|
||||
return obj.result_stdout
|
||||
|
||||
class UnifiedJobListSerializer(UnifiedJobSerializer):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user