-
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
GetOkExists returns false during create when empty value is specified for List type #116
Comments
Hi @parweza, Sorry about the confusion here, but this is working as expected. From the
There is no notion of "unset" in the current schema packages. We are working on new protocol and configuration packages that will support this in the future, but for now the zero values can't be differentiated from unset in the in config. |
@jbardin |
Unfortunately there is not currently a method for determining this in all cases. We are in the process of updating the configuration language to support this feature, but it's going to be some time before it's fully supported in the provider sdk. In the meantime, this usually requires the use of a sentinel value for the empty set, or another option field to indicate that the user wants to set no export options. |
any update on this? |
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. |
HI,
GetOkExists returns false during create when empty value is specified for List type. Because of that We are not able differentiate whether customer has omitted this field in tf config or has provided empty value.
with above config we are expecting to get
true
for ok onhttps://github.com/oracle/terraform-provider-oci/blob/master/provider/file_storage_export_resource.go#L177but we are getting false.
Can you please look into it?
Thanks,
Parwez
Terraform Version
Terraform Configuration Files
...
Debug Output
Crash Output
Expected Behavior
Actual Behavior
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered: