Skip to content

Commit

Permalink
fix: make delete_host function more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily authored and pvoborni committed Apr 8, 2024
1 parent 784d24b commit f1e7590
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mrack/providers/beaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ async def delete_host(self, host_id, host_name):
# the provider uses hostname from metadata of the VM which has failed
# to validate the requirements for the provider
log_msg_start = f"{self.dsp_name} [{host_name}]"
if host_id.isdigit():
host_id = "J:" + host_id
if not host_id.startswith("J:"):
logger.warning(
f"{log_msg_start} Job for host '{host_id}' does not exist yet"
Expand Down

0 comments on commit f1e7590

Please sign in to comment.