Closed cprice-ping closed 1 year ago
hey @cprice-ping it looks like the provider is swallowing part of the error, if you run this with TF_LOG=DEBUG env var you will also get the request/response json logged, the response will have the full error.
DEBUG is quite chatty -- here's the full error from PF
{"resultId":"validation_error","message":"Validation error(s) occurred. Please review the error(s) and address accordingly.","validationErrors":[{"message":"This list cannot contain empty entries.","fieldPath":"spBrowserSso.attributeContract.coreAttributes","errorId":"list_cannot_contain_empty_entries"}]}
I can fix this in the HCL -- and these logs will be useful as I'm troubleshooting my config
This switches the problem to be the docs -- you have sp_browser_sso
as optional, and within that block, attribute _mapping
as optional
Community Note
Terraform Version
Terraform v1.2.8
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/cprice-ping/9841e16de0eb62efd34887b86c42fcd1
Panic Output
Expected Behavior
Error would indicate where in the HCL the problem is
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
0000