From 1d52e281f0ad3463e1fe4f73ca4f9177c8866e9b Mon Sep 17 00:00:00 2001 From: Anna Khmelnitsky Date: Fri, 27 Oct 2023 03:21:42 +0000 Subject: [PATCH] Fix linter error Signed-off-by: Anna Khmelnitsky --- CHANGELOG.md | 4 ++-- nsxt/provider.go | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7d104386..fde300cf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 3.4.0 (October 26, 2023) +## 3.4.0 (October 27, 2023) FEATURES: * Multitenancy support. Supported resources and data sources can now be created within a context of a project. In order to specify a project, use `context` block within resource or data source, and specify `project_id` within. For the full list of supported resources, please refer to [Multitenancy Guide](https://registry.terraform.io/providers/vmware/nsxt/latest/docs/guides/multitenancy). @@ -9,7 +9,7 @@ As part of multitenancy support, project resource and data source are offered, a * `resource/nsxt_policy_project` BUG FIXES: -* `resource/nsxt_policy_security_policy`, `resource/nsxt_policy_gateway_policy`: Validate correctness of sequence numbers only on policy creation, and skip this check on update, but rather auto-correct sequence numbers if needed. This is in order to avoid erroring out in case of incorrect sequence numbers that got assigned in previous provider version ([#1001](https://github.com/vmware/terraform-provider-nsxt/pull/1001)) +* `resource/nsxt_policy_security_policy`, `resource/nsxt_policy_gateway_policy`: Validate correctness of sequence numbers only on policy creation, and skip this check on update, but rather auto-correct sequence numbers if needed. This is in order to avoid erroring out in case of incorrect sequence numbers that got assigned with previous provider version ([#1001](https://github.com/vmware/terraform-provider-nsxt/pull/1001)) * Escape all special characters in data sources, as required by search API. This fixes and issue with search by `display_name` that was not working as expected in case it contained some special characters ([#993](https://github.com/vmware/terraform-provider-nsxt/pull/993)) EXPERIMENTAL FEATURES: diff --git a/nsxt/provider.go b/nsxt/provider.go index e6239b065..b36133563 100644 --- a/nsxt/provider.go +++ b/nsxt/provider.go @@ -886,16 +886,6 @@ func applyLicense(connector client.Connector, licenseKey string) error { return nil } -func removeLicense(connector client.Connector, licenseKey string) error { - client := nsx.NewLicensesClient(connector) - err := client.Delete(licenseKey) - if err != nil { - return fmt.Errorf("error during license delete: %v", err) - } - - return nil -} - // license keys are applied on terraform plan and are not removed func configureLicenses(connector client.Connector, intentLicenses []string) error { if len(intentLicenses) == 0 {