Skip to content

Commit ec96f68

Browse files
committed
use lable, as before
1 parent dcb8391 commit ec96f68

File tree

1 file changed

+3
-0
lines changed
  • internal/kibana/synthetics/private_location

1 file changed

+3
-0
lines changed

internal/kibana/synthetics/private_location/read.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ func (r *Resource) Read(ctx context.Context, request resource.ReadRequest, respo
3535

3636
resourceId = compositeId.ResourceId
3737
namespace = compositeId.ClusterId
38+
} else {
39+
resourceId = state.Label.ValueString()
3840
}
41+
3942
result, err := kibanaClient.KibanaSynthetics.PrivateLocation.Get(ctx, resourceId, namespace)
4043
if err != nil {
4144
var apiError *kbapi.APIError

0 commit comments

Comments
 (0)