Skip to content
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

Merged
merged 4 commits into from
Jul 12, 2019
Merged

Wait on password replication #117

merged 4 commits into from
Jul 12, 2019

Conversation

jlpedrosa
Copy link
Contributor

@jlpedrosa jlpedrosa commented Jul 11, 2019

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.

@ghost ghost added the size/XS label Jul 11, 2019
Copy link
Collaborator

@katbyte katbyte left a 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)
Copy link
Collaborator

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:

Suggested change
return client.Get(ctx, id.ObjectId)
return client.ListPasswordCredentials(ctx, id.ObjectId)

as that is how we are checking if the credentials exist?

Copy link
Collaborator

@katbyte katbyte left a 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 🙂

@katbyte katbyte merged commit c80dd06 into hashicorp:master Jul 12, 2019
katbyte added a commit that referenced this pull request Jul 12, 2019
@ghost
Copy link

ghost commented Jul 24, 2019

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 ...

@ghost ghost removed the waiting-response label Jul 24, 2019
@ghost
Copy link

ghost commented Aug 11, 2019

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants