Skip to content

Commit fd00ee1

Browse files
authored
fix: Update lookup logic for Atlantis URL due to variable optional attributes (#428)
1 parent 3ffe262 commit fd00ee1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

main.tf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
locals {
22
# Atlantis
3-
atlantis_url = "https://${try(coalesce(
4-
try(var.atlantis.fqdn, module.alb.route53_records["A"].fqdn, null),
5-
module.alb.dns_name,
6-
), "")}"
3+
atlantis_url = "https://${try(
4+
coalesce(
5+
var.atlantis.fqdn,
6+
try(module.alb.route53_records["A"].fqdn, null),
7+
module.alb.dns_name,
8+
),
9+
"")}"
710
}
811

912
################################################################################

0 commit comments

Comments
 (0)