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

Add check for type conversion and deference. #2742

Merged
merged 2 commits into from
Jan 23, 2019
Merged

Conversation

metacpp
Copy link
Contributor

@metacpp metacpp commented Jan 23, 2019

This PR fixes the crash issue in #2682 with nil check before type conversion and deference.

(fixes #2682)

@ghost ghost added the size/XS label Jan 23, 2019
@metacpp metacpp added this to the 1.22.0 milestone Jan 23, 2019
@metacpp metacpp added the crash label Jan 23, 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.

Thanks for the fixes @metacpp, i've left a few comments inline and once they are fixed this should be good to go

azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
azurerm/resource_arm_subnet.go Outdated Show resolved Hide resolved
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.

LGTM 👍

@tombuildsstuff tombuildsstuff dismissed katbyte’s stale review January 23, 2019 15:37

changes have been pushed

@tombuildsstuff tombuildsstuff merged commit bba35a5 into master Jan 23, 2019
@tombuildsstuff tombuildsstuff deleted the subnet_svcend branch January 23, 2019 15:37
tombuildsstuff added a commit that referenced this pull request Jan 23, 2019
@metacpp metacpp changed the title Add nil check before type conversion and deference. Add check for type conversion and deference. Jan 23, 2019
@ghost
Copy link

ghost commented Mar 5, 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 Mar 5, 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.

Terraform crashes when azurerm_subnet is provided with an empty list for service_endpoints
3 participants