From a05a971eacd2fc42fe80ee4eb41be2d7523bef82 Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Wed, 16 Oct 2019 21:48:32 +0000 Subject: [PATCH] Force clear members if iam_binding doesn't find a binding Signed-off-by: Modular Magician --- google/resource_iam_binding.go | 1 + 1 file changed, 1 insertion(+) diff --git a/google/resource_iam_binding.go b/google/resource_iam_binding.go index 425e62c58a2..3c10db54c99 100644 --- a/google/resource_iam_binding.go +++ b/google/resource_iam_binding.go @@ -106,6 +106,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)