vmware / terraform-provider-vcf

Terraform Provider for VMware Cloud Foundation
https://registry.terraform.io/providers/vmware/vcf/
Mozilla Public License 2.0
23 stars 10 forks source link

fix: `validation_utils.IsEmpty` doesn't check for boolean values #46

Closed hedenface closed 1 year ago

hedenface commented 1 year ago

Signed-off-by: Bryan Heden b.heden@gmail.com

In order to have a good experience with our community, we recommend that you read the contributing guidelines for making a pull request.

Summary of Pull Request

This offers a fix during vcf_domain creation when defining an nfs_datastore. The validation_utils.IsEmpty function doesn't check properly for a boolean value. This could also fix potential bugs in a few other places.

https://github.com/vmware/terraform-provider-vcf/blob/v0.2.0/internal/datastores/nfs_datastore_subresource.go#L68-L72

Type of Pull Request

Related to Existing Issues

Issue Number: N/A

Test and Documentation Coverage

For bug fixes or features:

Breaking Changes?

hedenface commented 1 year ago

@tenthirtyam This is the follow up to 45, appropriately signed.

hedenface commented 1 year ago

So, going through the codebase, it looks like this fix affects the bug I already listed in the description, but also probably the following locations:

dimitarproynov commented 1 year ago

Thanks!

dimitarproynov commented 1 year ago

I'm struggling with some unexpected behavior in Acceptance E2E tests, but I'm planning a release right after the struggle is over.

github-actions[bot] commented 1 year ago

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.