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
refactor: improve retention_days_cross_valid clarity and add version compatibility docs
This commit builds on the fix from PR #283 with two improvements:
1. Clarify validation logic in main.tf:20
- Change from: (var.min_retention_days == null || var.max_retention_days == null) ? true : ...
- Change to: (var.min_retention_days != null && var.max_retention_days != null) ? (...) : true
- This explicit ternary pattern makes intent clearer: "compare only when both non-null"
- Improves code readability and maintainability for future developers
- Logically equivalent to original fix, with improved clarity
2. Document version compatibility in versions.tf
- Add comments explaining tested Terraform versions (1.3.0 - 1.11.4+)
- Add comments explaining tested OpenTofu versions (1.6.0 - 1.9.3+)
- Document the null handling issue fixed in main.tf
- Help users understand version support boundaries
These improvements maintain all existing functionality while enhancing code clarity
and providing better documentation for future maintainers.
0 commit comments