Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Wrap try() with coalesce() to overcome non-null defaults #4

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

mkilchhofer
Copy link
Owner

It seems that only using the try() function results in a wrong behavior.

As soon as there is an override for an alert defined, Terraform sets all the optional attributes within the override structure to null. When the try function gets null instead of "undefined", it doesn't use the fallback value.

@mkilchhofer mkilchhofer marked this pull request as ready for review September 11, 2024 09:44
@mkilchhofer mkilchhofer merged commit 30c0917 into main Sep 11, 2024
1 check passed
@mkilchhofer mkilchhofer deleted the bugfix/overrides_wrap_try branch September 11, 2024 09:48
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.

1 participant