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_function_app: convert connection_strings from a TypList to a TypeSet (#3596) #5319

Merged
merged 4 commits into from
Jan 8, 2020

Conversation

levvko
Copy link
Contributor

@levvko levvko commented Jan 6, 2020

Converted function app connection strings to Set, as it was previously done for app service
#3596

Fixes #3596

Copy link
Contributor

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

Thanks for this PR :)

Taking a look through whilst this converts the property to being a Set we also need to update the Expand function, else Terraform will crash when trying to parse/expand the Connection Strings block - however if we can update that then we should be able to run the tests and get this merged 👍

Thanks!

@@ -97,7 +97,7 @@ func resourceArmFunctionApp() *schema.Resource {
},

"connection_string": {
Type: schema.TypeList,
Type: schema.TypeSet,
Copy link
Contributor

Choose a reason for hiding this comment

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

in addition to this we also need to update the expand function to use: d.Get("foo").(*schema.Set).([]interface{} rather than d.Get("foo").([]interface{}) since this is now a Set rather than a List

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 for the revision @levvko! LGTM now 👍

@katbyte katbyte changed the title converted function connection strings to Set #3596 azurerm_function_app: convert connection_strings from a TypList to a TypeSet (#3596) Jan 8, 2020
@katbyte katbyte merged commit 8586346 into hashicorp:master Jan 8, 2020
katbyte added a commit that referenced this pull request Jan 8, 2020
@levvko levvko deleted the function-connection-strings branch January 8, 2020 17:14
@ghost
Copy link

ghost commented Jan 16, 2020

This has been released in version 1.41.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.41.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Feb 8, 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 and limited conversation to collaborators Feb 8, 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.

Azurerm_function_app Connection Strings constantly over-write
3 participants