Skip to content

Conversation

@johncblandii
Copy link
Contributor

what

  • Updated the enabled condition for the access_log_bucket_name module to use coalesce()
  • Now treats null values the same as empty strings

why

  • The original condition var.access_log_bucket_name == "" fails when the variable is null
  • Using coalesce(var.access_log_bucket_name, "") ensures both null and "" trigger the access log bucket name generation logic

references

  • Fixes the condition to properly support all variable states

The enabled condition now uses coalesce() to treat null values the same
as empty strings, allowing proper logic flow when the variable is not set.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@johncblandii johncblandii requested review from a team as code owners January 16, 2026 14:57
@johncblandii johncblandii requested review from Gowiem and oycyc January 16, 2026 14:57
@mergify mergify bot added the triage Needs triage label Jan 16, 2026
@johncblandii
Copy link
Contributor Author

/terratest

coalesce() fails when all arguments are empty strings. Using an explicit
check for both null and empty string avoids this error.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@johncblandii
Copy link
Contributor Author

/terratest

@johncblandii johncblandii enabled auto-merge (squash) January 16, 2026 15:21
@johncblandii johncblandii merged commit d53da83 into main Jan 16, 2026
15 checks passed
@johncblandii johncblandii deleted the feat/null-access-log-bucket branch January 16, 2026 15:23
@mergify mergify bot removed the triage Needs triage label Jan 16, 2026
@github-actions
Copy link
Contributor

These changes were released in v0.29.0.

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.

3 participants