forked from mirrors/terraform-provider-binarylane
Fix binarylane_server_reverse_name create hanging forever #4
Reference in New Issue
Block a user
Delete Branch "benvin/reverse-name-wait-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
binarylane_server_reverse_name polls its change_reverse_name action, which never reports complete even though the PTR is applied. The shared action wait also retries non-200 responses with no deadline, so create hangs indefinitely.
completedstatus as terminal and fail on a 404 action in waitForServerActionreverseName == nilreturns right after the POST, so Delete no longer waits at all (it used to wait on the action for a 200) → poll until the IP no longer reports the old name, or say in the PR body that Delete is fire-and-forget now.serverActionTimeoutshortened via t.Cleanup.