Skip to content

Commit

Permalink
Convert the float to int to fix the traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
seberm committed Nov 28, 2024
1 parent 9c6ab1d commit 50bc017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmt/steps/report/reportportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _filter_log_per_size(data: str,
f"exceeds tmt reportportal plugin limit of {settings.size}. "
f"The limit is controlled with {option} plugin option or "
f"{variable} environment variable.\n\n")
return f"{header}{data[:settings.size.to('bytes').magnitude]}"
return f"{header}{data[:int(settings.size.to('bytes').magnitude)]}"
return data


Expand Down

0 comments on commit 50bc017

Please sign in to comment.