Skip to content

Commit 8a8f20e

Browse files
storage bucket IAM diff suppress (#3324) (#1918)
Signed-off-by: Modular Magician <[email protected]>
1 parent 9cee305 commit 8a8f20e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changelog/3324.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
storage: fixed an issue where `google_storage_bucket_iam_member` showed a diff for bucket self links
3+
```

google-beta/iam_storage_bucket.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ var StorageBucketIamSchema = map[string]*schema.Schema{
2626
Type: schema.TypeString,
2727
Required: true,
2828
ForceNew: true,
29-
DiffSuppressFunc: compareSelfLinkOrResourceName,
29+
DiffSuppressFunc: StorageBucketDiffSuppress,
3030
},
3131
}
3232

33+
func StorageBucketDiffSuppress(_, old, new string, _ *schema.ResourceData) bool {
34+
return compareResourceNames("", old, new, nil)
35+
}
36+
3337
type StorageBucketIamUpdater struct {
3438
bucket string
3539
d *schema.ResourceData

0 commit comments

Comments
 (0)