When attempting to refresh after an scm_address_object has been deleted, I receive an error.
│
│ [HTTP 400] API_I00013 Your configuration is not valid. Please review the error message for more details. - map[errorType:Object Not Present message:Failed to find obj-uuid for command
│ get]
╵
Expected behavior
I expect the refresh to detect that the scm_address_object is no longer present and remove it from state.
Current behavior
The refresh returns an error and fails.
Possible solution
I believe this is actually a bug with the API response. It should be responding with a 404 not found but is responding back with a 400 bad request which leads the read to handle the error different that what would be expected as you can see here.
Describe the bug
When attempting to refresh after an scm_address_object has been deleted, I receive an error.
Expected behavior
I expect the refresh to detect that the scm_address_object is no longer present and remove it from state.
Current behavior
The refresh returns an error and fails.
Possible solution
I believe this is actually a bug with the API response. It should be responding with a
404 not found
but is responding back with a400 bad request
which leads the read to handle the error different that what would be expected as you can see here.Steps to reproduce
terraform apply
terraform refresh
Screenshots
Context
This appears to also be the case with most other resources as well.
Your Environment