Commit 2f8abeb
committed
fix(workload-identity): resolve inconsistent conditional result types in output
When use_existing_gcp_sa is unknown at plan time, Terraform fails with
"Inconsistent conditional result types" because the data source and resource
have slightly different object schemas. Replace the ternary with
one(concat(...)) so Terraform never needs to type-check across the two
branches — only one list ever has elements based on their mutually exclusive
count conditions.
Fixes #11121 parent 94bdc6a commit 2f8abeb
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
0 commit comments