Skip to content

Commit 7e8b555

Browse files
committed
Do not check Computed tags_all
1 parent cb416e7 commit 7e8b555

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Anton Tayanovskyy <[email protected]>
3+
Date: Mon, 1 Jul 2024 16:02:48 -0400
4+
Subject: [PATCH] Do not check Computed tags_all
5+
6+
7+
diff --git a/internal/provider/fwprovider/provider.go b/internal/provider/fwprovider/provider.go
8+
index 2d28d90310..b09529ad3e 100644
9+
--- a/internal/provider/fwprovider/provider.go
10+
+++ b/internal/provider/fwprovider/provider.go
11+
@@ -428,12 +428,7 @@ func (p *fwprovider) Resources(ctx context.Context) []func() resource.Resource {
12+
errs = append(errs, fmt.Errorf("no `%s` attribute defined in schema: %s", names.AttrTags, typeName))
13+
continue
14+
}
15+
- if v, ok := schemaResponse.Schema.Attributes[names.AttrTagsAll]; ok {
16+
- if v.IsComputed() {
17+
- errs = append(errs, fmt.Errorf("`%s` attribute must not be Computed: %s", names.AttrTagsAll, typeName))
18+
- continue
19+
- }
20+
- } else {
21+
+ if _, ok := schemaResponse.Schema.Attributes[names.AttrTagsAll]; !ok {
22+
errs = append(errs, fmt.Errorf("no `%s` attribute defined in schema: %s", names.AttrTagsAll, typeName))
23+
continue
24+
}

0 commit comments

Comments
 (0)