mirror of https://github.com/hashicorp/terraform
provider/aws: Refresh state on Directory Service not found (#6294)
When a directory service was not found, Terraform was panicking due to `dir := out.DirectoryDescriptions[0]`. The AWS API doesn't throw an Error in this case. IT just return s0 results. Therefore, we should check for 0 results in the return and remove the directory from the statepull/6298/head
parent
4345c08194
commit
fb1a82dbd7
Loading…
Reference in new issue