Commit 9b0e388
fix: handle null undrainable_node_behavior in precondition validation
The contains() function in Terraform does not accept null arguments,
and Terraform does not short-circuit || evaluation. When
undrainable_node_behavior is explicitly set to null, try() passes
null through (since accessing a null attribute is not an error), causing
contains() to crash with 'argument must not be null'.
Fix by wrapping with coalesce() to convert null to an empty string
before passing to contains(). Also harden the blob driver subnet
check in main.tf with the same pattern.
Fixes #760
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0f8086c commit 9b0e388
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| |||
0 commit comments