Skip to content

Commit b98bacb

Browse files
authored
azure: relax condition on scan_version variable (#174)
1 parent bfc7a1e commit b98bacb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

azure/modules/custom-data/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ variable "scanner_version" {
2222
type = string
2323
default = "0.11"
2424
validation {
25-
condition = can(regex("^[0-9]+\\.[0-9]+$", var.scanner_version))
26-
error_message = "The scanner version must be in the format of X.Y"
25+
condition = can(regex("^[0-9]+\\.[0-9]+", var.scanner_version))
26+
error_message = "The scanner version must start with a number, followed by a period and a number (X.Y)"
2727
}
2828
}
2929

azure/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ variable "scanner_version" {
7272
type = string
7373
default = "0.11"
7474
validation {
75-
condition = can(regex("^[0-9]+\\.[0-9]+$", var.scanner_version))
76-
error_message = "The scanner version must be in the format of X.Y"
75+
condition = can(regex("^[0-9]+\\.[0-9]+", var.scanner_version))
76+
error_message = "The scanner version must start with a number, followed by a period and a number (X.Y)"
7777
}
7878
}
7979

0 commit comments

Comments
 (0)