Skip to content

Commit

Permalink
storage bucket IAM diff suppress (GoogleCloudPlatform#3324)
Browse files Browse the repository at this point in the history
  • Loading branch information
c2thorn authored and Nathan Klish committed May 18, 2020
1 parent a552c0c commit e837341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions products/storage/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ objects:
set_iam_policy_method: 'iam'
set_iam_policy_verb: :PUT
wrapped_policy_obj: false
custom_diff_suppress: 'templates/terraform/iam/storage_bucket_diff_suppress.go.erb'
properties:
- !ruby/object:Api::Type::Array
name: 'acl'
Expand Down
3 changes: 3 additions & 0 deletions templates/terraform/iam/storage_bucket_diff_suppress.go.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
func <%= resource_name -%>DiffSuppress(_, old, new string, _ *schema.ResourceData) bool {
return compareResourceNames("", old, new, nil)
}

0 comments on commit e837341

Please sign in to comment.