Skip to content

Add support for optional conditions in rules#180

Merged
SazniMohamed merged 1 commit intowso2:mainfrom
SazniMohamed:main-sep-2
Sep 2, 2025
Merged

Add support for optional conditions in rules#180
SazniMohamed merged 1 commit intowso2:mainfrom
SazniMohamed:main-sep-2

Conversation

@SazniMohamed
Copy link
Contributor

Description

Refactored the conditions block in azurerm_cdn_frontdoor_rule to be fully dynamic, so it is only created when each.value.conditions contains entries.

Updated all nested dynamic condition blocks (e.g., remote_address_condition, url_path_condition, request_header_condition, etc.) to reference conditions.value instead of conditions to fix Terraform type errors.

Prevents Terraform from generating empty conditions {} blocks when no conditions are provided.

Improves state management and avoids unnecessary API updates for rules without conditions.

@SazniMohamed SazniMohamed changed the title Add support for optionl conditions in rules Add support for optional conditions in rules Sep 2, 2025
@SazniMohamed SazniMohamed merged commit b489e5f into wso2:main Sep 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants