Skip to content

Commit 7f06253

Browse files
modular-magicianc2thorn
authored andcommitted
Add a sleep google_service_account to reduce the likelihood of eventual consistency errors (#10813) (#7427)
[upstream:86935162103d83c8b9c3cdeae8833a1173ea9fb2] Signed-off-by: Modular Magician <[email protected]>
1 parent b49c17a commit 7f06253

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

google-beta/services/resourcemanager/resource_google_service_account.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ func resourceGoogleServiceAccountCreate(d *schema.ResourceData, meta interface{}
160160
return err
161161
}
162162

163+
// We can't guarantee complete consistency even after polling,
164+
// so sleep for some additional time to reduce the likelihood of
165+
// eventual consistency failures.
166+
time.Sleep(10 * time.Second)
167+
163168
return resourceGoogleServiceAccountRead(d, meta)
164169
}
165170

0 commit comments

Comments
 (0)