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

Update azurerm_policy_set_definition - Support to use non-string typed parameter values in policy_definition_reference block #8270

Merged
merged 2 commits into from
Sep 22, 2020

Conversation

ArcturusZhang
Copy link
Contributor

Fixes #8159

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 @ArcturusZhang

Thanks for this PR.

I've taken a look through and left some comments inline, but this is off to a good start. If we can fix the comments up (and the tests pass) then this otherwise LGTM 👍

Thanks!

}

definition := policy.SetDefinition{
Name: utils.String(name),
Copy link
Member

Choose a reason for hiding this comment

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

is this intentionally removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this name parameter is read only, it will be ignored when building the request, therefore there is no point setting it here

website/docs/r/policy_set_definition.html.markdown Outdated Show resolved Hide resolved
website/docs/r/policy_set_definition.html.markdown Outdated Show resolved Hide resolved
@ArcturusZhang
Copy link
Contributor Author

HI @tombuildsstuff I have made some changes, please have a look, thanks

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.

thanks @ArcturusZhang - LGTM now 👍

@katbyte katbyte merged commit 5716ce0 into hashicorp:master Sep 22, 2020
katbyte added a commit that referenced this pull request Sep 22, 2020
@ArcturusZhang ArcturusZhang deleted the fix-policy-set-definition branch September 22, 2020 05:50
@ghost
Copy link

ghost commented Sep 24, 2020

This has been released in version 2.29.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 = "~> 2.29.0"
}
# ... other configuration ...

@ArcturusZhang ArcturusZhang restored the fix-policy-set-definition branch September 29, 2020 03:05
@ArcturusZhang ArcturusZhang deleted the fix-policy-set-definition branch October 22, 2020 02:15
@ghost
Copy link

ghost commented Oct 22, 2020

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 as resolved and limited conversation to collaborators Oct 22, 2020
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.

Error when trying to retrieve azurerm_policy_set_definition
3 participants