Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Ensure fields in bunny-go struct message are set to nil instead of the types default value #76

Open
fho opened this issue Jun 15, 2022 · 0 comments

Comments

@fho
Copy link
Contributor

fho commented Jun 15, 2022

When converting fields from a resource to the bunny-go struct, schema.ResourceData.Get() is called via the type get*Ptr helper functions.
schema.ResourceData.Get() returns the types default value if a field is not set.
Investigate if in the bunny-go message fields are set to their default value instead of nil when they are unset in the provider.
If this is the case, evaluate using GetOk instead.

see also the commit message: 5-stones@773b9be

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant