Skip to content

Commit b73b443

Browse files
author
dmytro_velychko3
committed
fix: chenged lifecycle condition
1 parent e122981 commit b73b443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ resource "azurerm_private_dns_zone_virtual_network_link" "this" {
2222

2323
lifecycle {
2424
precondition {
25-
condition = length(var.dns_zone_name) == 0 && length(var.external_dns_zone_name) == 0 ? false : true
25+
condition = alltrue([length(var.dns_zone_name) == 0, length(var.external_dns_zone_name) == 0]) ? false : true
2626
error_message = "Provide either 'dns_zone_name' value to create new Private DNS Zone or 'external_dns_zone_name' value to create link with already existing Private DNS Zone"
2727
}
2828
}

0 commit comments

Comments
 (0)