diff --git a/CHANGELOG.md b/CHANGELOG.md index e143b681..5a9d23ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 3.32.3 (August, 22 2024) + +### Notes + +- Release date: **(August, 22 2024)** +- Supported Terraform version: **v1.x** + +### Bug Fixes +- [PR #476](https://github.com/zscaler/terraform-provider-zpa/pull/476) - Fixed validation for the `match_style` attribute in the resource `zpa_application_segment`. + ## 3.32.2 (August, 16 2024) ### Notes diff --git a/GNUmakefile b/GNUmakefile index 2d348ced..4a3c2fe6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -55,14 +55,14 @@ test\:integration\:zpa: build13: GOOS=$(shell go env GOOS) build13: GOARCH=$(shell go env GOARCH) ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10... -build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZPA_PROVIDER_NAMESPACE)/3.32.2/$(GOOS)_$(GOARCH) +build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZPA_PROVIDER_NAMESPACE)/3.32.3/$(GOOS)_$(GOARCH) else -build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZPA_PROVIDER_NAMESPACE)/3.32.2/$(GOOS)_$(GOARCH) +build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZPA_PROVIDER_NAMESPACE)/3.32.3/$(GOOS)_$(GOARCH) endif build13: fmtcheck @echo "==> Installing plugin to $(DESTINATION)" @mkdir -p $(DESTINATION) - go build -o $(DESTINATION)/terraform-provider-zpa_v3.32.2 + go build -o $(DESTINATION)/terraform-provider-zpa_v3.32.3 vet: @echo "==> Checking source code against go vet and staticcheck" diff --git a/docs/guides/release-notes.md b/docs/guides/release-notes.md index c7fbb7c8..88cada80 100644 --- a/docs/guides/release-notes.md +++ b/docs/guides/release-notes.md @@ -12,10 +12,20 @@ Track all ZPA Terraform provider's releases. New resources, features, and bug fi --- -``Last updated: v3.32.2`` +``Last updated: v3.32.3`` --- +## 3.32.3 (August, 22 2024) + +### Notes + +- Release date: **(August, 22 2024)** +- Supported Terraform version: **v1.x** + +### Bug Fixes +- [PR #476](https://github.com/zscaler/terraform-provider-zpa/pull/476) - Fixed validation for the `match_style` attribute in the resource `zpa_application_segment`. + ## 3.32.2 (August, 16 2024) ### Notes diff --git a/zpa/resource_zpa_application_segment.go b/zpa/resource_zpa_application_segment.go index d0ecaf42..f5e9c169 100644 --- a/zpa/resource_zpa_application_segment.go +++ b/zpa/resource_zpa_application_segment.go @@ -1,7 +1,6 @@ package zpa import ( - "context" "fmt" "log" "strconv" @@ -24,20 +23,6 @@ func resourceApplicationSegment() *schema.Resource { Read: resourceApplicationSegmentRead, Update: resourceApplicationSegmentUpdate, Delete: resourceApplicationSegmentDelete, - CustomizeDiff: func(ctx context.Context, d *schema.ResourceDiff, meta interface{}) error { - // Get the value of the ip_anchored attribute - ipAnchored := d.Get("ip_anchored").(bool) - - // Check if match_style is set - if matchStyle, ok := d.GetOk("match_style"); ok { - // If ip_anchored is true and match_style is set, return an error - if ipAnchored && matchStyle != "" { - return fmt.Errorf("match_style cannot be set when ip_anchored is true") - } - } - - return nil - }, Importer: &schema.ResourceImporter{ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) { client := meta.(*Client)