fix default value

pull/42/head
Muhammad Atif Ali 2 years ago committed by GitHub
parent a7f2a9e80f
commit 24471d46e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,7 +33,6 @@ variable "default" {
variable "jetbrains_ides" { variable "jetbrains_ides" {
type = list(string) type = list(string)
description = "The list of IDE product codes." description = "The list of IDE product codes."
default = var.default != null && var.default != "" ? var.default : null
validation { validation {
condition = ( condition = (
alltrue([ alltrue([
@ -110,7 +109,7 @@ data "coder_parameter" "jetbrains_ide" {
display_name = "JetBrains IDE" display_name = "JetBrains IDE"
icon = "/icon/gateway.svg" icon = "/icon/gateway.svg"
mutable = true mutable = true
default = local.gateway_ides["GO"].value default = var.default != null && var.default != "" ? var.default : null
dynamic "option" { dynamic "option" {
for_each = { for key, value in local.gateway_ides : key => value if contains(var.jetbrains_ides, key) } for_each = { for key, value in local.gateway_ides : key => value if contains(var.jetbrains_ides, key) }

Loading…
Cancel
Save