Skip to content

Commit 1c68179

Browse files
committed
fix when no value is provided
1 parent 7dc5cc3 commit 1c68179

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

registry/coder/modules/jetbrains-gateway/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("jetbrains-gateway", async () => {
2020
folder: "/home/coder",
2121
});
2222
expect(state.outputs.url.value).toBe(
23-
"jetbrains-gateway://connect#type=coder&workspace=default&owner=default&folder=/home/coder&url=https://mydeployment.coder.com&token=$SESSION_TOKEN&ide_product_code=IU&ide_build_number=243.21565.193&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2024.3.tar.gz&agent_id=foo",
23+
"jetbrains-gateway://connect#type=coder&workspace=default&owner=default&folder=/home/coder&url=https://mydeployment.coder.com&token=$SESSION_TOKEN&ide_product_code=IU&ide_build_number=243.21565.193&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2024.3.tar.gz",
2424
);
2525

2626
const coder_app = state.resources.find(

registry/coder/modules/jetbrains-gateway/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ resource "coder_app" "gateway" {
347347
local.build_number,
348348
"&ide_download_link=",
349349
local.download_link,
350-
], trimspace(var.agent_name) != ""
350+
], trimspace(var.agent_name) != ""
351351
? ["&agent=", var.agent_name]
352-
: (trimspace(var.agent_id) != "" ? ["&agent_id=", var.agent_id] : [])))
352+
: []))
353353
}
354354

355355
output "identifier" {

0 commit comments

Comments
 (0)