-
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 error when changing route from virtual appliance to any other type #2184
Fix error when changing route from virtual appliance to any other type #2184
Conversation
…form-provider-azurerm into fix-changing-route-from-virtual-appliance-to-other-type
…form-provider-azurerm into fix-changing-route-from-virtual-appliance-to-other-type
There are a few linting errors from other resources. Those are optimizations. Should I fix them here or should they be fixed in separate pull requests? |
@tombuildsstuff No worries, I was the cause of one of them anyway 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @draggeta
Thanks for this PR - on the whole this looks good to me, if we can update the test to ensure the next_hop_in_ip_address
field is set to an empty string (unassigned) then this otherwise LGTM 👍
Thanks!
Co-Authored-By: draggeta <[email protected]>
Co-Authored-By: draggeta <[email protected]>
…' of https://github.com/draggeta/terraform-provider-azurerm into fix-changing-route-from-virtual-appliance-to-other-type
…form-provider-azurerm into fix-changing-route-from-virtual-appliance-to-other-type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @draggeta
Thanks for pushing those changes - this now LGTM 👍 - I'll kick off the tests shortly
Thanks!
``` $ acctests azurerm TestAccAzureRMRoute_update === RUN TestAccAzureRMRoute_update --- PASS: TestAccAzureRMRoute_update (151.30s) PASS ok github.com/terraform-providers/terraform-provider-azurerm/azurerm 153.050s ```
hey @draggeta Running the tests I noticed one of them is failing due to the
So that we can get this merged I've pushed a commit to fix this - I hope you don't mind! Thanks! |
So in version 0.18 it was allowing to have this next_hop_in_ip_address null, but due to the verification it now needs a value if its specified. The big issue with this is, when you have N amount of routes per route table using a MAP, you cannot use a TF resource template anymore, you will have to create 2 templates (one for next_hop_in_ip_address and one without it) Is there another way to tackle this without duplicating code? Thank you. It will also allow me to understand the reason behind mandating a value on this key when is specified. |
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 👉 [email protected]. Thanks! |
There was a problem with changing from virtual appliance to any other type. This was caused by the fact that
next_hop_in_ip_address
was computed.The issue occurred in both azurerm_route_table and azurerm_route.
Also made some other changes to make both resources similar.
Closes #1352