Skip to content

Commit

Permalink
Add validation for hotpatching_enabled (#33)
Browse files Browse the repository at this point in the history
Signed-off-by: Melody Sofia Eroshevich <[email protected]>
  • Loading branch information
neonwhiskers authored Sep 25, 2024
1 parent ac6a4db commit 56d1052
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ variable "hotpatching_enabled" {
condition = var.hotpatching_enabled == false ? true : local.is_windows
error_message = "Hotpatching can only be set for Windows virtual machines."
}

validation {
condition = var.hotpatching_enabled == true ? true : var.bypass_platform_safety_checks_on_user_schedule_enabled
error_message = "Only one of the following options can be set to true: either bypass_platform_safety_checks_on_user_schedule_enabled or hotpatching_enabled."
}
}

variable "identity" {
Expand Down

0 comments on commit 56d1052

Please sign in to comment.