Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(multi-runner): Fix runner_additional_security_group_ids (#3352)
If `runner_additional_security_group_ids` is only set outside the multi_runner_config `coalesce(each.value.runner_config.runner_additional_security_group_ids, var.runner_additional_security_group_ids)` is coalescing an empty list (the default value for `each.value.runner_config.runner_additional_security_group_ids`) with whatever is set outside the multi_runner_config, this always results in the returned value being an empty list: ``` > coalesce([], ["sg-123456"]) tolist([]) ``` Using coalescelist instead returns the first non-empty list: ``` > coalescelist([], ["sg-123456"]) [ "sg-123456", ] ``` And the `try` returns an empty list if both coalesced lists are empty (rather than throwing an error): ``` > try(coalescelist([], []), []) [] ```
- Loading branch information