Skip to content

Commit 3878e66

Browse files
authored
fix: use agent_name in jetbrains-gateway (coder#110)
1 parent d48b68d commit 3878e66

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jetbrains-gateway/main.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ variable "agent_id" {
1414
description = "The ID of a Coder agent."
1515
}
1616

17+
variable "agent_name" {
18+
type = string
19+
description = "Agent name."
20+
}
21+
1722
variable "folder" {
1823
type = string
1924
description = "The directory to open in the IDE. e.g. /home/coder/project"
@@ -119,8 +124,8 @@ resource "coder_app" "gateway" {
119124
url = join("", [
120125
"jetbrains-gateway://connect#type=coder&workspace=",
121126
data.coder_workspace.me.name,
122-
"&agent_id=",
123-
var.agent_id,
127+
"&agent=",
128+
var.agent_name,
124129
"&folder=",
125130
var.folder,
126131
"&url=",

0 commit comments

Comments
 (0)