Skip to content

Commit 6477dce

Browse files
committed
Convert the float to int to fix the traceback
1 parent d885b0a commit 6477dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmt/steps/report/reportportal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _filter_log_per_size(data: str,
7979
f"exceeds tmt reportportal plugin limit of {settings.size}. "
8080
f"The limit is controlled with {option} plugin option or "
8181
f"{variable} environment variable.\n\n")
82-
return f"{header}{data[:settings.size.to('bytes').magnitude]}"
82+
return f"{header}{data[:int(settings.size.to('bytes').magnitude)]}"
8383
return data
8484

8585

0 commit comments

Comments
 (0)