Skip to content

Commit

Permalink
Add a sleep google_service_account to reduce the likelihood of even…
Browse files Browse the repository at this point in the history
…tual consistency errors (#10813) (#18261)

[upstream:86935162103d83c8b9c3cdeae8833a1173ea9fb2]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored May 28, 2024
1 parent 9a7bc21 commit 46c21e0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ func resourceGoogleServiceAccountCreate(d *schema.ResourceData, meta interface{}
return err
}

// We can't guarantee complete consistency even after polling,
// so sleep for some additional time to reduce the likelihood of
// eventual consistency failures.
time.Sleep(10 * time.Second)

return resourceGoogleServiceAccountRead(d, meta)
}

Expand Down

0 comments on commit 46c21e0

Please sign in to comment.