vmware / terraform-provider-nsxt

Terraform VMware NSX-T provider
https://www.terraform.io/docs/providers/nsxt/
Other
123 stars 80 forks source link

Add OmitIfEmpty option in metadata library #1238

Closed annakhm closed 4 weeks ago

annakhm commented 1 month ago

NSX would not accept empty value for some attributes. For those, the attribute should be omitted in request. This PR add such support this behavior when flag is specified in metadata.

wsquan171 commented 1 month ago

I guess this only applies to strings? And from stuct to schema this will be automatically bypassed since the stuct would have a nil value?

annakhm commented 1 month ago

I guess this only applies to strings? And from stuct to schema this will be automatically bypassed since the stuct would have a nil value?

Correct, I don't think this can be relevant to numbers and bools