Skip to content

Commit 3346bb9

Browse files
authored
Merge pull request #1 from infobloxopen/fix-git-desc
Add validation for description variable length
2 parents 9f3f601 + 590e5f8 commit 3346bb9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ variable "description" {
5555
description = "(Optional) A description of the repository."
5656
type = string
5757
default = ""
58+
59+
validation {
60+
condition = length(var.description) <= 350
61+
error_message = "The value for 'description' must not exceed 350 characters."
62+
}
5863
}
5964

6065
variable "homepage_url" {

0 commit comments

Comments
 (0)