Skip to content

Commit 5ccf103

Browse files
committed
naming ...
1 parent 254d9e1 commit 5ccf103

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/kibana/synthetics/private_location/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (r *Resource) Delete(ctx context.Context, request resource.DeleteRequest, r
2424
resourceId := plan.ID.ValueString()
2525
namespace := plan.SpaceID.ValueString()
2626

27-
compositeId, dg := readCompositeIdOrConfigId(resourceId)
27+
compositeId, dg := tryReadCompositeId(resourceId)
2828
response.Diagnostics.Append(dg...)
2929
if response.Diagnostics.HasError() {
3030
return

internal/kibana/synthetics/private_location/read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (r *Resource) Read(ctx context.Context, request resource.ReadRequest, respo
2626
resourceId := state.ID.ValueString()
2727
namespace := state.SpaceID.ValueString()
2828

29-
compositeId, dg := readCompositeIdOrConfigId(resourceId)
29+
compositeId, dg := tryReadCompositeId(resourceId)
3030
response.Diagnostics.Append(dg...)
3131
if response.Diagnostics.HasError() {
3232
return

internal/kibana/synthetics/private_location/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (m *tfModelV0) toPrivateLocationConfig() kbapi.PrivateLocationConfig {
8888
}
8989
}
9090

91-
func readCompositeIdOrConfigId(id string) (*clients.CompositeId, diag.Diagnostics) {
91+
func tryReadCompositeId(id string) (*clients.CompositeId, diag.Diagnostics) {
9292
if strings.Contains(id, "/") {
9393
compositeId, diagnostics := synthetics.GetCompositeId(id)
9494
return compositeId, diagnostics

0 commit comments

Comments
 (0)