Skip to content

Commit 8becafe

Browse files
Support - character in WLS user name (#167)
1 parent f3ccc2c commit 8becafe

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

terraform/modules/compute/wls_compute/wls_variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ variable "wls_admin_user" {
1515
type = string
1616
description = "The name of the admin user that will be added to the WebLogic domain"
1717
validation {
18-
condition = replace(var.wls_admin_user, "/^[a-zA-Z][a-zA-Z0-9_]{7,127}/", "0") == "0"
19-
error_message = "WLSC-ERROR: The value for wls_admin_user should be between 8 and 128 characters long and alphanumeric, and can contain underscore (_) special character."
18+
condition = replace(var.wls_admin_user, "/^[a-zA-Z][a-zA-Z0-9_-]{7,127}/", "0") == "0"
19+
error_message = "WLSC-ERROR: The value for wls_admin_user should be between 8 and 128 characters long and alphanumeric, and can contain underscore (_) and hyphen(-) special characters."
2020
}
2121
}
2222

terraform/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ variables:
462462
type: string
463463
title: "WebLogic Server Admin User Name"
464464
description: "The name of the administrator in the WebLogic Server domain"
465-
pattern: "^[a-zA-Z][a-zA-Z0-9_]{7,127}$"
465+
pattern: "^[a-zA-Z][a-zA-Z0-9_-]{7,127}$"
466466
minLength: 8
467467
maxLength: 128
468468
required: true

terraform/schema_14110.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ variables:
460460
type: string
461461
title: "WebLogic Server Admin User Name"
462462
description: "The name of the administrator in the WebLogic Server domain"
463-
pattern: "^[a-zA-Z][a-zA-Z0-9_]{7,127}$"
463+
pattern: "^[a-zA-Z][a-zA-Z0-9_-]{7,127}$"
464464
minLength: 8
465465
maxLength: 128
466466
required: true
@@ -1465,7 +1465,7 @@ variables:
14651465
# Tagging variables
14661466
create_service_tag:
14671467
visible: ${orm_create_mode}
1468-
type: boolean"
1468+
type: boolean
14691469
title: "Add Tags"
14701470
default: false
14711471
description: "Add tags to the resources created by the WebLogic for OCI stack"

terraform/weblogic_variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ variable "wls_admin_user" {
2929
description = "Name of WebLogic administration user"
3030
default = "weblogic"
3131
validation {
32-
condition = replace(var.wls_admin_user, "/^[a-zA-Z][a-zA-Z0-9_]{7,127}/", "0") == "0"
33-
error_message = "WLSC-ERROR: The value for wls_admin_user should be between 8 and 128 characters long and alphanumeric, and can contain underscore (_) special character."
32+
condition = replace(var.wls_admin_user, "/^[a-zA-Z][a-zA-Z0-9_-]{7,127}/", "0") == "0"
33+
error_message = "WLSC-ERROR: The value for wls_admin_user should be between 8 and 128 characters long and alphanumeric, and can contain underscore (_) and hyphen(-) special characters."
3434
}
3535
}
3636

0 commit comments

Comments
 (0)