Skip to content

Commit

Permalink
Fix type error for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
drewtul committed Nov 29, 2024
1 parent 5a77f1e commit e4e46e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (d *dataSourceAttributeGroup) Read(ctx context.Context, req datasource.Read
}

// Transparent tagging doesn't work for DataSource yet
data.Tags = flex.FlattenFrameworkStringValueMapLegacy(ctx, KeyValueTags(ctx, out.Tags).IgnoreAWS().IgnoreConfig(ignoreTagsConfig).Map())
data.Tags = tftags.NewMapFromMapValue(flex.FlattenFrameworkStringValueMapLegacy(ctx, KeyValueTags(ctx, out.Tags).IgnoreAWS().IgnoreConfig(ignoreTagsConfig).Map()))

resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
}
Expand All @@ -112,5 +112,5 @@ type dataSourceAttributeGroupData struct {
Description types.String `tfsdk:"description"`
ID types.String `tfsdk:"id"`
Name types.String `tfsdk:"name"`
Tags types.Map `tfsdk:"tags"`
Tags tftags.Map `tfsdk:"tags"`
}

0 comments on commit e4e46e2

Please sign in to comment.