Skip to content

Commit

Permalink
Clear members if iam_binding doesn't find a binding (#2481)
Browse files Browse the repository at this point in the history
Merged PR #2481.
  • Loading branch information
slevenick authored and modular-magician committed Oct 17, 2019
1 parent eb875a4 commit d76cd0d
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 d76cd0d

Please sign in to comment.