Skip to content

Commit

Permalink
CloudProvider: Allow unhandled values in metrics list validation (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
thepalbi authored Feb 3, 2025
1 parent 8859f6c commit 626011e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resources/cloudprovider/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (v awsCWScrapeJobNoDuplicateMetricNamesValidator) MarkdownDescription(ctx c
func (v awsCWScrapeJobNoDuplicateMetricNamesValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse) {
seen := map[string]struct{}{}
elems := make([]awsCWScrapeJobMetricTFModel, len(req.ConfigValue.Elements()))
diags := req.ConfigValue.ElementsAs(ctx, &elems, false)
diags := req.ConfigValue.ElementsAs(ctx, &elems, true)
resp.Diagnostics.Append(diags...)
if diags.HasError() {
return
Expand Down

0 comments on commit 626011e

Please sign in to comment.