Skip to content

Commit 4cadfd8

Browse files
committed
added. null condition
1 parent a68cda9 commit 4cadfd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ variable "logging_application_log_level" {
241241
type = string
242242
default = null
243243
validation {
244-
condition = contains(["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", null], var.logging_application_log_level)
244+
condition = var.logging_application_log_level == null ? true : contains(["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"], var.logging_application_log_level)
245245
error_message = "Valid values for logging_info.application_log_level are (TRACE, DEBUG, INFO, WARN, ERROR, FATAL)."
246246
}
247247
}
@@ -265,7 +265,7 @@ variable "logging_system_log_level" {
265265
type = string
266266
default = null
267267
validation {
268-
condition = contains(["DEBUG", "INFO", "WARN", null], var.logging_system_log_level)
268+
condition = var.logging_system_log_level == null ? true : contains(["DEBUG", "INFO", "WARN", null], var.logging_system_log_level)
269269
error_message = "Valid values for logging_info.system_log_level are (DEBUG, INFO, WARN)."
270270
}
271271
}

0 commit comments

Comments
 (0)