-
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
azurerm_route_map
- Make rule parameters optional when type is Drop
#26003
azurerm_route_map
- Make rule parameters optional when type is Drop
#26003
Conversation
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.
Hi @oWretch, thanks for submitting this. This is looking good so far, but it would be good if we could include this case in the tests. Thanks!
Thanks @catriona-m. I've added the drop rule to the test suite. |
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.
Thanks @oWretch LGTM 👍
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
Route Map rule do not support parameters when the action type is
Drop
. With the current provider, the parameter block must be supplied regardless of the action type. This means either having to create an empty parameter block forDrop
which causes perpetual diffs, or create a parameter block with one of the parameters as an empty list to prevent the diff.This PR makes the parameter block optional, and validates it is provided for non-Drop types during the plan
PR Checklist
Changes to existing Resource / Data Source
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_route_map
- makeproperty
optional when the actiontype
isDrop
[azurerm_route_map
- Make rule parameters optional when type isDrop
#26003]This is a (please select all that apply):