|
|
@ -43,8 +43,8 @@ variable "expires_in" {
|
|
|
|
|
|
|
|
|
|
|
|
variable "username_field" {
|
|
|
|
variable "username_field" {
|
|
|
|
type = string
|
|
|
|
type = string
|
|
|
|
description = "The field to use for the artifactory username. i.e. Coder username or email."
|
|
|
|
description = "The field to use for the artifactory username. Default `username`."
|
|
|
|
default = "email"
|
|
|
|
default = "username"
|
|
|
|
validation {
|
|
|
|
validation {
|
|
|
|
condition = can(regex("^(email|username)$", var.username_field))
|
|
|
|
condition = can(regex("^(email|username)$", var.username_field))
|
|
|
|
error_message = "username_field must be either 'email' or 'username'"
|
|
|
|
error_message = "username_field must be either 'email' or 'username'"
|
|
|
|