Skip to content

fix: Change default value for ordered_cache_behavior to empty list to avoid type checking acrobatics and type mis-matches#183

Merged
bryantbiggs merged 2 commits intoterraform-aws-modules:masterfrom
miseyu:fix/issue-182
Dec 3, 2025
Merged

fix: Change default value for ordered_cache_behavior to empty list to avoid type checking acrobatics and type mis-matches#183
bryantbiggs merged 2 commits intoterraform-aws-modules:masterfrom
miseyu:fix/issue-182

Conversation

@miseyu
Copy link
Contributor

@miseyu miseyu commented Dec 2, 2025

Description

Updated the local variable to avoid adding a null value to the concat() function for cache behaviors, ensuring a cleaner and more robust configuration.

Motivation and Context

Breaking Changes

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

Updated the local variable to avoid adding a `null` value to the
`concat()` function for cache behaviors, ensuring a cleaner and more
robust configuration.
@jjosef
Copy link

jjosef commented Dec 3, 2025

👍 v6.0.1 is broken due to this issue

@bryantbiggs bryantbiggs changed the title fix: Normalize ordered cache behavior handling in local variable fix: Change default value for ordered_cache_behavior to empty list to avoid type checking acrobatics and type mis-matches Dec 3, 2025
@bryantbiggs bryantbiggs merged commit 5427273 into terraform-aws-modules:master Dec 3, 2025
8 checks passed
antonbabenko pushed a commit that referenced this pull request Dec 3, 2025
## [6.0.2](v6.0.1...v6.0.2) (2025-12-03)

### Bug Fixes

* Change default value for `ordered_cache_behavior` to empty list to avoid type checking acrobatics and type mis-matches ([#183](#183)) ([5427273](5427273))
@antonbabenko
Copy link
Member

This PR is included in version 6.0.2 🎉

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

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 issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] An error occurs when both default_cache_behavior and ordered_cache_behavior are set.

4 participants