You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, im writting a module to use this provider
I have an issue with the variables that cannot be set together
exemple for junos_interface_physical ressource
│ Error: Conflict Configuration Error
│
│ with module.fwv-ang49-12.junos_interface_physical.this,
│ on ../../modules/terraform-module-srx_config/interfaces.tf line 2, in resource "junos_interface_physical" "this":
│ 2: resource "junos_interface_physical" "this" {
│
│ only one of ether_opts, gigether_opts or parent_ether_opts block can be specified
Do you see a way to bypass this error ? do you think you should update your code in order to accept this blocks together if they are equals to null ?
I also have to same question for all the opposite vars loopback/no_loopback, flow/no_flow etc...
Thanks in advance
The text was updated successfully, but these errors were encountered:
Thank you for raising this issue.
After testing your example, I discovered that the received resource config by the resource config validator can have unknown value for all configured attributes in modules whatever the module variable value and the final value for resources attributes/blocks. With a difference for single block, in this case block is set to known with all configured block attributes in modules to unknown value.
Unfortunately, in resource validator, I not considered this potential case and I will have to add a skip on conflict check when have :
a attribute with unknown value (value could be null after the config validator call)
a single block with null or unknown values in all block attributes (which means that the block could be null after the config validator call)
I take care of fix this and other potential same cases on other resources.
avoid trigger the conflict errors when Terraform call
resource config validate and value for potential conflict
is unknown (can be null afterwards)
Fix#611
Hello, im writting a module to use this provider
I have an issue with the variables that cannot be set together
exemple for junos_interface_physical ressource
I've declared in my ressource
and on the variables
Do you see a way to bypass this error ? do you think you should update your code in order to accept this blocks together if they are equals to null ?
I also have to same question for all the opposite vars loopback/no_loopback, flow/no_flow etc...
Thanks in advance
The text was updated successfully, but these errors were encountered: