From 7c0c0b3a8a3b6602ab65ed4b7f7c74bae57d26da Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Fri, 22 Mar 2024 12:48:04 -0700 Subject: [PATCH] checkpoint Signed-off-by: Jeff Ortel --- addon/task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/task.go b/addon/task.go index 4b50c247f..e7a50c155 100644 --- a/addon/task.go +++ b/addon/task.go @@ -3,13 +3,13 @@ package addon import ( "encoding/json" "fmt" - "os" "regexp" "strings" "github.com/konveyor/tackle2-hub/api" "github.com/konveyor/tackle2-hub/binding" "github.com/konveyor/tackle2-hub/task" + "k8s.io/utils/env" ) // Task API. @@ -315,7 +315,7 @@ func (r *EnvInjector) inject(in any) (out any) { node = strings.Replace( node, match[0], - os.Getenv(match[2]), + env.GetString(match[2], match[0]), -1) } out = node