Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Khmelnitsky <[email protected]>
  • Loading branch information
annakhm committed Oct 27, 2023
1 parent bd9b804 commit 1d52e28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
Expand All @@ -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:
Expand Down
10 changes: 0 additions & 10 deletions nsxt/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1d52e28

Please sign in to comment.