[Bug] The ibm_resource_tag does not check the response on api tags calls #5635
Labels
service/Global Tagging
Issues related to Global Tagging
service/Resource Management
Issues related to Resource Manager or Resource controller Issues
Community Note
Terraform CLI and Terraform IBM Provider Version
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
When we provision a
ibm_resource_tag
and there is an error on the attach call we can have a response with http code 200 and a json like:or like:
With the above response, we expect to see an error on the terraform plan/apply.
Actual Behavior
The expected behavior does not occur since the code here does not check the results:
This occurs in multiple uses cases:
Logs:
Zip archive with the code snippet:
Archive.zip
Steps to Reproduce
terraform init
terraform plan
terraform apply
terraform destroy
Important Factoids
References
The text was updated successfully, but these errors were encountered: