This repository was archived by the owner on May 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ locals {
213213 }
214214 }
215215
216- icon = try ( lookup ( local. jetbrains_ides , data. coder_parameter . jetbrains_ide . value ) . icon , " /icon/gateway.svg " )
216+ icon = local. jetbrains_ides [ data . coder_parameter . jetbrains_ide . value ] . icon
217217 json_data = var. latest ? jsondecode (data. http . jetbrains_ide_versions [data . coder_parameter . jetbrains_ide . value ]. response_body ) : {}
218218 key = var. latest ? keys (local. json_data )[0 ] : " "
219219 display_name = local. jetbrains_ides [data . coder_parameter . jetbrains_ide . value ]. name
@@ -247,8 +247,8 @@ data "coder_workspace" "me" {}
247247resource "coder_app" "gateway" {
248248 agent_id = var. agent_id
249249 slug = " gateway"
250- display_name = try ( lookup (data . coder_parameter . jetbrains_ide . option , data . coder_parameter . jetbrains_ide . value ) . name , " JetBrains IDE " )
251- icon = try ( lookup (data . coder_parameter . jetbrains_ide . option , data . coder_parameter . jetbrains_ide . value ) . icon , " /icon/gateway.svg " )
250+ display_name = local . display_name
251+ icon = local . icon
252252 external = true
253253 order = var. order
254254 url = join (" " , [
You can’t perform that action at this time.
0 commit comments