-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when creating a Drive #11
Comments
Hi and thanks for the bug report! Since the API is really inconsistent, it is also hard to test this behaviour. The sleep timer should just be a failsafe, but it looks like it may not be enough. I could definitely try to increase it to 10 seconds, although I would prefer a more elegant and permanent solution. I will take a look at this for the next release. As an immediate workaround you could try something with https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep. |
…nitial creation of a Shared Drive (resolves #11)
@jannishuebl I was able to reproduce the issue and it still boils down to the API not being strongly consistent. After the creation of a Drive, the API immediately returns the object, but subsequent calls that reference or use the Drive may result in 404 errors for a while. Even if one or two requests succeed, the next one may still return 404. The workaround for now is to have a longer wait time to give the backend time to replicate. I just released version v0.9.1 of the provider that introduces a new optional parameter called As a side-note: In hindsight, it might have been better to create a separate resource for Drive restriction, as these cannot be set during the creation and need an update operation after the Drive has been created. I may change this in a v1.0 of the provider, as it would be a breaking change. |
When i want to create a shared drive, the drive is created but terraform gives me:
I think there could be some timeing issue:
Do you think it could help to increase this sleep time?
terraform-provider-gdrive/provider/resource_drive.go
Line 149 in 65cb3ac
The text was updated successfully, but these errors were encountered: