Skip to content

Commit

Permalink
Clean up obsolete exception wrapping
Browse files Browse the repository at this point in the history
The automatic host removal is not a background job anymore, so the
RuntimeError is misleading.

Change-Id: Iec6783606e65a374346c118061d9171b338b020c
  • Loading branch information
LarsMichelsen committed Dec 18, 2024
1 parent 23fe4b0 commit 3d35315
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/composition/test_automatic_host_removal.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ def _host_removal_done() -> bool:
interval=20,
)

except Exception as exc:
if not central_site.file_exists("var/check_mk/background_jobs/host_removal"):
raise RuntimeError("Host removal background job was not even started") from exc
raise
finally:
central_site.openapi.rules.delete(rule_id=rule_id)
if unresolvable_host_central in central_site.openapi.hosts.get_all_names():
Expand Down

0 comments on commit 3d35315

Please sign in to comment.