Skip to content

Commit

Permalink
update returncode check of check_mk_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidax authored Mar 8, 2024
1 parent d8fa8ed commit 89ed431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkmk_kube_agent/send_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def machine_sections_worker(
stdout=subprocess.PIPE,
) as process:
(out, err) = process.communicate(timeout=5)
if returncode != 0:
if process.returncode != 0:
# we don't capture stderr so it's printed to stderr of this process
# and hopefully contains a helpful error message...
raise RuntimeError("Agent execution failed.")
Expand Down

0 comments on commit 89ed431

Please sign in to comment.