fix count error

pull/47/head
Muhammad Atif Ali 2 years ago
parent db6ef22e04
commit 9e0fe90aeb
No known key found for this signature in database

@ -51,8 +51,8 @@ data "coder_workspace" "me" {}
resource "coder_script" "git_config" { resource "coder_script" "git_config" {
agent_id = var.agent_id agent_id = var.agent_id
script = templatefile("${path.module}/run.sh", { script = templatefile("${path.module}/run.sh", {
CODER_USERNAME = try(data.coder_parameter.username.value, data.coder_workspace.me.owner) CODER_USERNAME = try(data.coder_parameter.username[0].value, data.coder_workspace.me.owner)
CODER_EMAIL = try(data.coder_parameter.user_email.value, data.coder_workspace.me.owner_email) CODER_EMAIL = try(data.coder_parameter.user_email[0].value, data.coder_workspace.me.owner_email)
}) })
display_name = "Git Config" display_name = "Git Config"
icon = "/icon/git.svg" icon = "/icon/git.svg"

Loading…
Cancel
Save