Skip to content

Commit 351b890

Browse files
committed
Remove unused variables and update CHANGELOG
1 parent b794328 commit 351b890

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- Add support for data_stream `lifecycle` template settings ([#724](https://github.com/elastic/terraform-provider-elasticstack/pull/724))
55
- Fix a provider panic when `elasticstack_kibana_action_connector` reads a non-existant connector ([#729](https://github.com/elastic/terraform-provider-elasticstack/pull/729))
66
- Add support for `remote_indicies` to `elasticstack_elasticsearch_security_role` & `elasticstack_kibana_security_role` (#723)[https://github.com/elastic/terraform-provider-elasticstack/pull/723]
7-
- Add support for global data tags in agent policy creation and update (#730)[https://github.com/elastic/terraform-provider-elasticstack/pull/730]
7+
- 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]
88

99
## [0.11.6] - 2024-08-20
1010

internal/fleet/agent_policy_resource.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -289,16 +289,6 @@ func resourceAgentPolicyRead(ctx context.Context, d *schema.ResourceData, meta i
289289
return diags
290290
}
291291

292-
apiClient, diags := clients.NewApiClientFromSDKResource(d, meta)
293-
if diags.HasError() {
294-
return diags
295-
}
296-
297-
serverVersion, diags := apiClient.ServerVersion(ctx)
298-
if diags.HasError() {
299-
return diags
300-
}
301-
302292
agentPolicy, diags := fleet.ReadAgentPolicy(ctx, fleetClient, d.Id())
303293
if diags.HasError() {
304294
return diags

0 commit comments

Comments
 (0)