-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix panic in azurerm_virtual_machine_scale_set
resource with additional_unattend_config
block
#266
Fix panic in azurerm_virtual_machine_scale_set
resource with additional_unattend_config
block
#266
Conversation
…t resource when azure-sdk-for-go client returns nil in AdditionalUnattendContent.Content
After scanning the open issues, I add that this fixes #220. |
Hey @dominik-lekse Thanks for this PR - this LGTM! Taking a look at the VMSS tests I can't see any test covering this right now - as such would it be possible to add one a test for this as part of this PR, so that we can test this automatically going forward? :) Thanks! |
@tombuildsstuff You are right, looks like there is no test case covering a scale set consisting of Windows machines. I will add one which then also includes the |
…`additional_unattend_config` in `os_profile_windows_config` as already fixed for `azurerm_virtual_machine` in 443dd11
…ource `azurerm_virtual_machine_scale_set` when using `os_profile_linux_config`
I have added the test |
Hi @tombuildsstuff, just wanted to ping if you had a chance to take a look at this bug fix? |
👋 @dominik-lekse sorry for the delay - I'm going to take a look into this today :) |
Hey @dominik-lekse Thanks for this PR - I've taken a look through and this LGTM :) Tests pass: Thanks! |
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! |
This pull request fixes a nil pointer dereference panic in the
azurerm_virtual_machine_scale_set
resource. The panic occurs when at least oneadditional_unattend_config
block is defined in theos_profile_windows_config
block. A similar issue has been fixed for theazurerm_virtual_machine
resource in terraform #7453.Affected Resource(s)
azurerm_virtual_machine_scale_set
Panic Output
Expected Behavior
terraform apply
finishes successfullyActual Behavior
terraform apply
exits with panicSteps to Reproduce
azurerm_virtual_machine_scale_set
resource which contains at least oneadditional_unattend_config
block in theos_profile_windows_config
blockterraform apply
Acceptance tests
References
azurerm_virtual_machine
resource)