From 83d65efd260ee9b39f447af4c7835134049e4ddc Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 26 Sep 2023 15:47:41 +0300 Subject: [PATCH] fixup! --- jfrog/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jfrog/main.tf b/jfrog/main.tf index 5b0313d..9bb0b4b 100644 --- a/jfrog/main.tf +++ b/jfrog/main.tf @@ -31,7 +31,7 @@ provider "artifactory" { resource "artifactory_scoped_token" "me" { # This is hacky, but on terraform plan the data source gives empty strings, # which fails validation. - username = length(local.artifactory_username) > 0 ? local.artifactory_username : "plan" + username = length(data.coder_workspace.me.owner_email) > 0 ? data.coder_workspace.me.owner_email : "plan" } variable "agent_id" {