Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix failure when no backend specified (terraform-google-modules#8)
This change sets the `ports` list to [""] when `backend_params` is empty. Ideally this would be done with an expression like: ``` "${length(var.backend_params) == 0 ? "" : element(split(",", element(var.backend_params, count.index)), 2)}" ``` But because of a limitation with HCL, it cannot be done and we've resorted to the trick described in this issue: hashicorp/hil#50 (comment) The pipe `|` delimiter is used because it is not valid to use in GCP names. Contributed according to the Google CLA.
- Loading branch information