Skip to content
Snippets Groups Projects
Commit 50d2f3d9 authored by Daniel Naude's avatar Daniel Naude
Browse files

use our own value to pointer function

parent 9ee531c4
No related branches found
No related tags found
1 merge request!48Migrate to aws sdk for go v2
...@@ -6,7 +6,6 @@ import ( ...@@ -6,7 +6,6 @@ import (
"io" "io"
"time" "time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config" "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"
"github.com/aws/aws-sdk-go-v2/service/batch/types" "github.com/aws/aws-sdk-go-v2/service/batch/types"
...@@ -85,7 +84,7 @@ func SubmitJob(batchJob BatchJob) error { ...@@ -85,7 +84,7 @@ func SubmitJob(batchJob BatchJob) error {
input := &batch.SubmitJobInput{ input := &batch.SubmitJobInput{
JobDefinition: utils.ValueToPointer(batchJob.FullJobDefinition), JobDefinition: utils.ValueToPointer(batchJob.FullJobDefinition),
JobName: batchJob.Name, JobName: batchJob.Name,
JobQueue: aws.String(batchJob.FullJobQueue), JobQueue: utils.ValueToPointer(batchJob.FullJobQueue),
ContainerOverrides: &types.ContainerOverrides{ ContainerOverrides: &types.ContainerOverrides{
Command: command, Command: command,
Environment: environmentOverwrite, Environment: environmentOverwrite,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment