Skip to content

Commit

Permalink
flip validation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
annuay-google committed Jan 10, 2025
1 parent ec611b2 commit 645a699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/network/vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
resource "terraform_data" "secondary_ranges_validation" {
lifecycle {
precondition {
condition = length(var.secondary_ranges) == 0 || length(var.secondary_ranges_list) == 0
condition = !(length(var.secondary_ranges) > 0 && length(var.secondary_ranges_list) > 0)
error_message = "Only one of var.secondary_ranges or var.secondary_ranges_list should be specified"
}
}
Expand Down

0 comments on commit 645a699

Please sign in to comment.