Skip to content

Commit 7b5425c

Browse files
authored
fix: use set for tags (#62)
While our update function doesn't care about order, terraform itself does when it tries to compare the live and declared state before calling the update func.
1 parent a68a4ba commit 7b5425c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/resources/endpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Endpoint resource
2323
### Optional
2424

2525
- `label` (String) Label to decorate an endpoint with
26-
- `tags` (List of String) Tags to associate with the endpoint
26+
- `tags` (Set of String) Tags to associate with the endpoint
2727

2828
### Read-Only
2929

internal/provider/endpoint_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (r *EndpointResource) Schema(ctx context.Context, req resource.SchemaReques
153153
objectplanmodifier.UseStateForUnknown(),
154154
},
155155
},
156-
"tags": schema.ListAttribute{
156+
"tags": schema.SetAttribute{
157157
ElementType: types.StringType,
158158
Optional: true,
159159
MarkdownDescription: "Tags to associate with the endpoint",

0 commit comments

Comments
 (0)