-
Notifications
You must be signed in to change notification settings - Fork 301
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
Wait on password replication #117
Wait on password replication #117
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jlpedrosa,
Thank you for the PR, I've left one comment inline. I think we just need to change the API call we are making and it should work just fine.
@@ -58,6 +58,13 @@ func resourceServicePrincipalPasswordCreate(d *schema.ResourceData, meta interfa | |||
|
|||
d.SetId(id.String()) | |||
|
|||
_, err = graph.WaitForReplication(func() (interface{}, error) { | |||
return client.Get(ctx, id.ObjectId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So i think this should be:
return client.Get(ctx, id.ObjectId) | |
return client.ListPasswordCredentials(ctx, id.ObjectId) |
as that is how we are checking if the credentials exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope you don't mind but i've pushed my changes from #118 to get this merged tonight 🙂
This has been released in version 0.5.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azuread" {
version = "~> 0.5.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Hi @katbyte
This PR waits on Password replication, same as done in #93 for Application and service principal.
Please note that I have not run the integration tests as get a workable AAD, may be bit complex for me.