krystal / terraform-provider-katapult

Terraform Provider for Katapult.
https://registry.terraform.io/providers/krystal/katapult/latest/docs
MIT License
5 stars 2 forks source link

fix(virtual-machine): avoid rare error when creating a virtual machine #125

Closed jimehk closed 6 months ago

jimehk commented 6 months ago

Virtual Machines have two new states (allocating and allocated) which they very briefly transition through for a split second during start up.

This change makes the Terraform provider recognize those new states as pending states. Previously if the state refresh check that the provider perform happened to run at just the wrong time, the provider would get an unexpected status and error out.