Please vote on this issue by adding a π reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
The sample code to recreate the issue https://github.com/vcfonvpc/catalog-debug
Debug Output
Panic Output
Expected Behavior
We're using the above terraform templates to deploy VPC bare metal server, and read its information with resource ibm_is_bare_metal_server_initialization. When bare metal server creation is successful, the resource works as expected. If bare metal creation fails, the following error is reported:
2023/06/14 15:15:10 Terraform destroy | Error: Unsupported attribute
2023/06/14 15:15:10 Terraform destroy |
2023/06/14 15:15:10 Terraform destroy | on vpc_vmware_esxi_bare_metal.tf line 50, in locals:
2023/06/14 15:15:10 Terraform destroy | 50: password = module.zone_bare_metal_esxi.ibm_is_bare_metal_server_initialization.user_accounts[0].password,
2023/06/14 15:15:10 Terraform destroy | βββββββββββββββββ
2023/06/14 15:15:10 Terraform destroy | β module.zone_bare_metal_esxi is object with 1 attribute "ibm_is_bare_metal_server_hostname"
2023/06/14 15:15:10 Terraform destroy |
2023/06/14 15:15:10 Terraform destroy | This object does not have an attribute named
2023/06/14 15:15:10 Terraform destroy | "ibm_is_bare_metal_server_initialization".
Community Note
Terraform CLI and Terraform IBM Provider Version
Terraform version: Terraform v1.1 provider registry.terraform.io/ibm-cloud/ibm v1.54.0
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
We're using the above terraform templates to deploy VPC bare metal server, and read its information with resource ibm_is_bare_metal_server_initialization. When bare metal server creation is successful, the resource works as expected. If bare metal creation fails, the following error is reported:
Actual Behavior
Steps to Reproduce
Important Factoids
References
0000