Skip to content

Commit

Permalink
exclude domain name if zone not created
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 19, 2023
1 parent 7f93454 commit a574d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/full-setup-tf-upgrade/apps/dns/zones.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@ output "ptr_zone_info" {

output "all_zones" {
description = "DNS zone list"
value = flatten(concat([local.domain_name], [for x, s in local.ptr_zones : s.ptr_zone]))
value = flatten(compact(concat(var.dns_zone_create ? [local.domain_name] : [], [for x, s in local.ptr_zones : s.ptr_zone])))
}

0 comments on commit a574d43

Please sign in to comment.