Skip to content

Commit b2465a8

Browse files
committed
correct precondition
1 parent 0f8ac3a commit b2465a8

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
@@ -663,7 +663,7 @@ resource "azurerm_kubernetes_cluster" "main" {
663663
error_message = "When `dns_prefix_private_cluster` is set, `private_cluster_enabled` must be set to `true`."
664664
}
665665
precondition {
666-
condition = var.dns_prefix_private_cluster != null || var.identity_type == "UserAssigned" || var.client_id != ""
666+
condition = var.dns_prefix_private_cluster == null || var.identity_type == "UserAssigned" || var.client_id != ""
667667
error_message = "A user assigned identity or a service principal must be used when using a custom private dns zone"
668668
}
669669
precondition {

0 commit comments

Comments
 (0)