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

azurerm_notification_hub_authorization_rule fix to be able to create multiple rules in one go #4087

Merged
merged 5 commits into from Aug 14, 2019

Conversation

andrey-dubnik
Copy link
Contributor

Fixes the issue #4085

@ghost ghost added the size/M label Aug 14, 2019
Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @adubnik

Thanks for this PR :)

Taking a look through whilst this approach may work, it ends up delaying all errors should the input be invalid (or for example the ID being nil).

Instead could we update this to Lock on the name of the Notification Hub (as we do in other resources) - and also add this to the Delete method (since I'm assuming this'll also be an issue there?)

Thanks!

@tombuildsstuff
Copy link
Member

@adubnik thanks for pushing those changes

BTW comment on the azureRMLockByName says deprecated, is there something else to use in future?

we're gradually moving those functions (everything in deprecated.go) into azurerm/internal/... - but we don't want to break all the open PR's; as such those exist as a migration point. For the moment it should be fine to use that, when we remove those functions in the near future we'll switch over to the new method, so that should be fine 👍

Thanks!

Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @adubnik

Thanks for pushing those changes. Taking a look through aside from one minor typo (which I hope you don't mind, but I'm going to push a commit to fix) this otherwise LGTM 👍

Thanks!

@tombuildsstuff tombuildsstuff added this to the v1.33.0 milestone Aug 14, 2019
@tombuildsstuff
Copy link
Member

tombuildsstuff commented Aug 14, 2019

Tests pass:

Screenshot 2019-08-14 at 18 51 50

Thanks again @adubnik :)

@tombuildsstuff tombuildsstuff merged commit 8aa4a90 into hashicorp:master Aug 14, 2019
tombuildsstuff added a commit that referenced this pull request Aug 14, 2019
@ghost
Copy link

ghost commented Aug 22, 2019

This has been released in version 1.33.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 "azurerm" {
    version = "~> 1.33.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Sep 14, 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!

@hashicorp hashicorp locked and limited conversation to collaborators Sep 14, 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.

None yet

2 participants