Skip to content

Commit

Permalink
Changed validation error mesages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Valverde authored and Esteban Valverde committed Aug 20, 2024
1 parent 11a6ba3 commit e7f4e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ variable "data_disks" {
condition = alltrue([for o in var.data_disks : (
(o.source_resource_id != null && contains(["Copy", "Restore"], o.create_option) || (o.create_option == "Empty" && o.source_resource_id == null))
)])
error_message = "Indicate The source_resource_id of an existing Managed Disk or Snapshot to copy when create_option is Copy or the recovery point to restore when create_option is Restore. When create_option is Empty, leave source_resource_id as null."
error_message = "When a data disk source resource ID is specified then create option must be either 'Copy' or 'Restore'."
}

default = {}
Expand Down

0 comments on commit e7f4e2c

Please sign in to comment.