Skip to content

Commit 69a240d

Browse files
tobiodimuon
andauthored
Apply suggestions from code review
Co-authored-by: Dmitry Onishchenko <[email protected]>
1 parent bc4e8c2 commit 69a240d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/resources/apm_agent_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: |-
88

99
# Resource: elasticstack_apm_agent_configuration
1010

11-
Creates or updates a an APM agent configuration. See https://www.elastic.co/docs/solutions/observability/apm/apm-agent-central-configuration
11+
Creates or updates an APM agent configuration. See https://www.elastic.co/docs/solutions/observability/apm/apm-agent-central-configuration
1212

1313
## Example Usage
1414

internal/apm/agent_configuration/read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (r *resourceAgentConfiguration) Read(ctx context.Context, req resource.Read
3434
resp.Diagnostics.AddError("Failed to get APM agent configurations", err.Error())
3535
return
3636
}
37-
37+
defer apiResp.Body.Close()
3838
if diags := utils.CheckHttpErrorFromFW(apiResp.HTTPResponse, "Failed to get APM agent configurations"); diags.HasError() {
3939
resp.Diagnostics.Append(diags...)
4040
return

templates/resources/apm_agent_configuration.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: |-
88

99
# Resource: elasticstack_apm_agent_configuration
1010

11-
Creates or updates a an APM agent configuration. See https://www.elastic.co/docs/solutions/observability/apm/apm-agent-central-configuration
11+
Creates or updates an APM agent configuration. See https://www.elastic.co/docs/solutions/observability/apm/apm-agent-central-configuration
1212

1313
## Example Usage
1414

0 commit comments

Comments
 (0)