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:
parent
2eaa00b633
commit
61aa7c1ad7
@ -806,7 +806,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
try:
|
try:
|
||||||
return os.stat(self.result_stdout_file).st_size
|
return os.stat(self.result_stdout_file).st_size
|
||||||
except:
|
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):
|
def _result_stdout_raw_limited(self, start_line=0, end_line=None, redact_sensitive=True, escape_ascii=False):
|
||||||
return_buffer = u""
|
return_buffer = u""
|
||||||
|
Loading…
Reference in New Issue
Block a user