Skip to content

Commit fe85b30

Browse files
fix: updated the validation for the service_crn input (#39)
1 parent 8f8517b commit fe85b30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ibm_catalog.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
{
211211
"type": "regex",
212212
"description": "The value provided for 'service_crn' is not valid.",
213-
"value": "^crn:v\\d:(.*:){2}service:global:::endpoint:[A-Za-z0-9.-]+$"
213+
"value": "^crn:v\\d:([^:]+:){2}[^:]+:[^:]+:::endpoint:[A-Za-z0-9.-]+$"
214214
}
215215
]
216216
},

solutions/vpe-object/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ variable "service_crn" {
7676

7777
validation {
7878
condition = anytrue([
79-
can(regex("^crn:v\\d:(.*:){2}service:global:::endpoint:[A-Za-z0-9.-]+$", var.service_crn)),
79+
can(regex("^crn:v\\d:([^:]+:){2}[^:]+:[^:]+:::endpoint:[A-Za-z0-9.-]+$", var.service_crn)),
8080
var.service_crn == null,
8181
])
8282
error_message = "The value provided for 'service_crn' is not valid."

0 commit comments

Comments
 (0)