diff --git a/src/mrack/providers/beaker.py b/src/mrack/providers/beaker.py index 50e89805..57cdb460 100644 --- a/src/mrack/providers/beaker.py +++ b/src/mrack/providers/beaker.py @@ -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"