Skip to content

Commit

Permalink
Remove unused variables and update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
mholttech committed Sep 3, 2024
1 parent b794328 commit 351b890
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- Add support for data_stream `lifecycle` template settings ([#724](https://github.com/elastic/terraform-provider-elasticstack/pull/724))
- Fix a provider panic when `elasticstack_kibana_action_connector` reads a non-existant connector ([#729](https://github.com/elastic/terraform-provider-elasticstack/pull/729))
- Add support for `remote_indicies` to `elasticstack_elasticsearch_security_role` & `elasticstack_kibana_security_role` (#723)[https://github.com/elastic/terraform-provider-elasticstack/pull/723]
- Add support for global data tags in agent policy creation and update (#730)[https://github.com/elastic/terraform-provider-elasticstack/pull/730]
- Added support for global data tags in agent policy creation and update. Upgraded the generated Fleet API to version 8.15.0. (#730)[https://github.com/elastic/terraform-provider-elasticstack/pull/730]

## [0.11.6] - 2024-08-20

Expand Down
10 changes: 0 additions & 10 deletions internal/fleet/agent_policy_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,6 @@ func resourceAgentPolicyRead(ctx context.Context, d *schema.ResourceData, meta i
return diags
}

apiClient, diags := clients.NewApiClientFromSDKResource(d, meta)
if diags.HasError() {
return diags
}

serverVersion, diags := apiClient.ServerVersion(ctx)
if diags.HasError() {
return diags
}

agentPolicy, diags := fleet.ReadAgentPolicy(ctx, fleetClient, d.Id())
if diags.HasError() {
return diags
Expand Down

0 comments on commit 351b890

Please sign in to comment.