Skip to content

Commit

Permalink
more explicit validation condition on hub variable
Browse files Browse the repository at this point in the history
  • Loading branch information
simonebruzzechesse committed Jul 10, 2023
1 parent 3d9028a commit f180b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ncc-spoke-ra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ variable "hub" {
name = optional(string)
})
validation {
condition = var.hub.create && var.hub.name != null || !var.hub.create && var.hub.id != null
condition = var.hub.create && var.hub.name != null || var.hub.create == false && var.hub.id != null
error_message = "Name is required for configuring new ncc hub while referencing existing hub requires id."
}
}
Expand Down

0 comments on commit f180b91

Please sign in to comment.