Skip to content

Commit 0c5ecd2

Browse files
fix: fix the prefix input variable in the DA to allow null (#690)
1 parent ba5b7ba commit 0c5ecd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

solutions/fully-configurable/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ variable "prefix" {
3737

3838
validation {
3939
# must not exceed 16 characters in length
40-
condition = length(var.prefix) <= 16
40+
condition = var.prefix == null || var.prefix == "" ? true : length(var.prefix) <= 16
4141
error_message = "Prefix must not exceed 16 characters."
4242
}
4343
}

solutions/security-enforced/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ variable "prefix" {
3737

3838
validation {
3939
# must not exceed 16 characters in length
40-
condition = length(var.prefix) <= 16
40+
condition = var.prefix == null || var.prefix == "" ? true : length(var.prefix) <= 16
4141
error_message = "Prefix must not exceed 16 characters."
4242
}
4343
}

0 commit comments

Comments
 (0)