From 50d2f3d92fbadcefdfabdaa133a8579816830fc6 Mon Sep 17 00:00:00 2001
From: "daniel.naude" <danieln@bob.co.za>
Date: Fri, 7 Jun 2024 08:22:10 +0200
Subject: [PATCH] use our own value to pointer function

---
 batch/batch.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/batch/batch.go b/batch/batch.go
index 5069ac3..7bc147d 100644
--- a/batch/batch.go
+++ b/batch/batch.go
@@ -6,7 +6,6 @@ import (
 	"io"
 	"time"
 
-	"github.com/aws/aws-sdk-go-v2/aws"
 	"github.com/aws/aws-sdk-go-v2/config"
 	"github.com/aws/aws-sdk-go-v2/service/batch"
 	"github.com/aws/aws-sdk-go-v2/service/batch/types"
@@ -85,7 +84,7 @@ func SubmitJob(batchJob BatchJob) error {
 	input := &batch.SubmitJobInput{
 		JobDefinition: utils.ValueToPointer(batchJob.FullJobDefinition),
 		JobName:       batchJob.Name,
-		JobQueue:      aws.String(batchJob.FullJobQueue),
+		JobQueue:      utils.ValueToPointer(batchJob.FullJobQueue),
 		ContainerOverrides: &types.ContainerOverrides{
 			Command:     command,
 			Environment: environmentOverwrite,
-- 
GitLab