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
Terraform has been successfully initialized!
Terraform v1.3.2
Terraform Configuration Files
resource"junos_security_utm_profile_web_filtering_juniper_enhanced""default_permit" {
name="default_permit"category {
name=junos_security_utm_custom_url_category.servers-allow.nameaction="log-and-permit"
}
category {
name=junos_security_utm_custom_url_category.global-deny.nameaction="block"
}
...default_action="log-and-permit"custom_block_message="The page has been blocked because the content has been deemed unsuitable or harmful to your computer. If this site was blocked in error please send the information displayed below to your Computer Help Desk."timeout=3no_safe_search=truefallback_settings {
default="block"server_connectivity="block"timeout="block"too_many_requests="block"
}
}
resource"junos_security_global_policy""global" {
policy {
name="policy1"match_source_address="any"match_destination_address="any"match_application="junos-http"match_from_zone="internal"match_to_zone="untrust then = "permit" permit_application_services { security_intelligence_policy = "secintel-policy" utm_policy = "default_permit" } log_init = true }}
Expected Behavior
Terraform plan and apply that does not show needing changes on every run.
Actual Behavior
The terraform apply and plan consistently show the need for changes, even after running multiple times.
output is shown below.
Terraform and Provider Versions
Terraform has been successfully initialized! Terraform v1.3.2
Terraform Configuration Files
Expected Behavior
Terraform plan and apply that does not show needing changes on every run.
Actual Behavior
The terraform apply and plan consistently show the need for changes, even after running multiple times.
output is shown below.
Steps to Reproduce
terraform apply
terraform plan
orterraform apply
Additional Context
Seems to be related to this case statement check: https://github.com/jeremmfr/terraform-provider-junos/blob/main/junos/resource_security_global_policy.go#L488
Since the name of the utm policy ends with "permit" it is caught in this section, and doesn't fall through to: https://github.com/jeremmfr/terraform-provider-junos/blob/main/junos/resource_security_global_policy.go#L498
Need to find a better way to handle this, to allow names with "permit" in the title.
References
The text was updated successfully, but these errors were encountered: