Skip to content

Commit

Permalink
16351 FIX Support Diagnostics crashes when receiving tar from remote …
Browse files Browse the repository at this point in the history
…site

This werk fixes the behavior that creating the support diagnostics crashed when receiving the tar file(s)
from a remote site.

Change-Id: I9251e68a6520c75a9ad3d9f41a4c7cc1b3c12016
  • Loading branch information
lgetwan committed Aug 20, 2024
1 parent 0d5ee03 commit c48e160
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .werks/16351
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Title: Support Diagnostics crashes when receiving tar from remote site
Class: fix
Compatible: compat
Component: wato
Date: 1722859081
Edition: cre
Level: 1
Version: 2.2.0p33

This werk fixes the behavior that creating the support diagnostics crashed when receiving the tar file(s)
from a remote site.
1 change: 1 addition & 0 deletions cmk/gui/wato/pages/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ def _merge_results(


def _get_tarfile_from_remotesite(site: SiteId, tarfile_name: str, timeout: int) -> str:
cmk.utils.paths.diagnostics_dir.mkdir(parents=True, exist_ok=True)
tarfile_localpath = _create_file_path()
with open(tarfile_localpath, "wb") as file:
file.write(_get_diagnostics_dump_file(site, tarfile_name, timeout))
Expand Down

0 comments on commit c48e160

Please sign in to comment.