PXE boot unsuccessful on first machine deployed everyday

Hello, I have a problem when deploying my machines to vmware using Foreman and a PXE boot. The first machine I deploy everyday doesn’t boot correctly and shows the following message after the PXE finish template is executed.

Other machines I deploy during the rest of the day boot without any problem and show this message.

I noticed this started to happen when I started using an API that connects to vmware to delete the deployment interface from the machines. The call to this API is made in the PXE finish template, right after informing foreman that we are built.

I was wondering if anyone had experienced anything similar or if anyone have any idea of what might be happening.

Expected outcome:
Succesful boot

Foreman and Proxy versions:
3.1, 3.2, 3.3

Foreman and Proxy plugin versions:
3.1, 3.2, 3.3

Distribution and version:

Other relevant data: