fix: use agent_name in jetbrains-gateway (#110)

This commit is contained in:
Muhammad Atif Ali
2023-12-08 04:10:19 +03:00
committed by GitHub
parent d48b68d374
commit 3878e66700

View File

@@ -14,6 +14,11 @@ variable "agent_id" {
description = "The ID of a Coder agent." description = "The ID of a Coder agent."
} }
variable "agent_name" {
type = string
description = "Agent name."
}
variable "folder" { variable "folder" {
type = string type = string
description = "The directory to open in the IDE. e.g. /home/coder/project" description = "The directory to open in the IDE. e.g. /home/coder/project"
@@ -119,8 +124,8 @@ resource "coder_app" "gateway" {
url = join("", [ url = join("", [
"jetbrains-gateway://connect#type=coder&workspace=", "jetbrains-gateway://connect#type=coder&workspace=",
data.coder_workspace.me.name, data.coder_workspace.me.name,
"&agent_id=", "&agent=",
var.agent_id, var.agent_name,
"&folder=", "&folder=",
var.folder, var.folder,
"&url=", "&url=",