Skip to content

Commit 39c723a

Browse files
fix: fix the prefix input variable in the DA to allow null (#224)
Co-authored-by: Conall Ó Cofaigh <ocofaigh@ie.ibm.com>
1 parent 7adbba0 commit 39c723a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

solutions/apps/variables.tf

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

4848
validation {
4949
# must not exceed 16 characters in length
50-
condition = length(var.prefix) <= 16
50+
condition = var.prefix == null || var.prefix == "" ? true : length(var.prefix) <= 16
5151
error_message = "Prefix must not exceed 16 characters."
5252
}
5353
}

solutions/project/variables.tf

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

4242
validation {
4343
# must not exceed 16 characters in length
44-
condition = length(var.prefix) <= 16
44+
condition = var.prefix == null || var.prefix == "" ? true : length(var.prefix) <= 16
4545
error_message = "Prefix must not exceed 16 characters."
4646
}
4747
}

0 commit comments

Comments
 (0)