-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type defined in schema.Schema not being honored/accepted after Getting from state #211
Comments
I should clarify that this schema is a subschema of a TypeList
|
=>
This has no problems in other schemas |
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I am experiencing an issue in terraform core while developing a provider. I am defining several portions of schema.Schema with their types, but receiving unexpected outputs.
Terraform Version
Terraform v0.12.8-dev
Terraform Configuration Files
Schema Code
Implementation Code
HCL
Debug Output
Custom debug log line
log.Println(spew.Sprint(stateMap))
Crash Output
Expected Behavior
The bool and int should have casted as expected (and as is done properly by other similar fields in the provider's schema).
Actual Behavior
Bool and Int fields were strings
Additional Context
This same process is working fine with other schema fields, however. Dumping the data via a log shows they are what I would expect
( https://play.golang.org/p/37UeYsyGr-W )
Additionally, I've found
null
s where defaults are set in other schemas.The text was updated successfully, but these errors were encountered: