1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

return proper stdout size for DB-backed stdout (like system jobs)

see: https://github.com/ansible/ansible-tower/issues/7398
This commit is contained in:
Ryan Petrello 2017-08-07 17:08:25 -04:00
parent 2eaa00b633
commit 61aa7c1ad7

View File

@ -806,7 +806,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
try:
return os.stat(self.result_stdout_file).st_size
except:
return 0
return len(self.result_stdout)
def _result_stdout_raw_limited(self, start_line=0, end_line=None, redact_sensitive=True, escape_ascii=False):
return_buffer = u""