I have var.workload_identity_federation = null when using the module.
This results in the following error
│ Error: Attempt to get attribute from null value
│
│ on .terraform/modules/meshplatform_training/variables.tf line 132, in variable "workload_identity_federation":
│ 132: var.workload_identity_federation.mca_subject == null && var.workload_identity_federation.mca_subjects == null
│ ├────────────────
│ │ var.workload_identity_federation is null
│
│ This value is null, so it does not have any attributes.
The || operator in hcl does not short-circuit: hashicorp/terraform#24128
The culprit is here
We probably have to refactor to use can/coalesce or the condition ?: operator instead.
I have
var.workload_identity_federation = nullwhen using the module.This results in the following error
The
||operator in hcl does not short-circuit: hashicorp/terraform#24128The culprit is here
terraform-azure-meshplatform/variables.tf
Line 130 in 2271ee8
We probably have to refactor to use can/coalesce or the condition ?: operator instead.