Skip to content

Commit

Permalink
Clear members if iam_binding doesn't find a binding (GoogleCloudPlatf…
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick authored and JanMa committed Oct 25, 2019
1 parent 6816079 commit 162b78e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func resourceIamBindingRead(newUpdaterFunc newResourceIamUpdaterFunc) schema.Rea
if binding == nil {
log.Printf("[DEBUG]: Binding for role %q not found in policy for %s, assuming it has no members.", eBinding.Role, updater.DescribeResource())
d.Set("role", eBinding.Role)
d.Set("members", nil)
return nil
} else {
d.Set("role", binding.Role)
Expand Down

0 comments on commit 162b78e

Please sign in to comment.