Skip to content

Commit 626011e

Browse files
authored
CloudProvider: Allow unhandled values in metrics list validation (#2015)
1 parent 8859f6c commit 626011e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resources/cloudprovider/models.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (v awsCWScrapeJobNoDuplicateMetricNamesValidator) MarkdownDescription(ctx c
185185
func (v awsCWScrapeJobNoDuplicateMetricNamesValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse) {
186186
seen := map[string]struct{}{}
187187
elems := make([]awsCWScrapeJobMetricTFModel, len(req.ConfigValue.Elements()))
188-
diags := req.ConfigValue.ElementsAs(ctx, &elems, false)
188+
diags := req.ConfigValue.ElementsAs(ctx, &elems, true)
189189
resp.Diagnostics.Append(diags...)
190190
if diags.HasError() {
191191
return

0 commit comments

Comments
 (0)