Skip to content

Commit

Permalink
fix command override for schedule tasks when it has multiple arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
gumieri committed Mar 1, 2023
1 parent 5d6f6c4 commit a95a8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/scheduled_tasks_configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func scheduledTasksConfigureRun(cmd *cobra.Command, scheduledTasks []string) {
if len(override.ContainerOverrides) == 0 {
override.ContainerOverrides = append(override.ContainerOverrides, &ecs.ContainerOverride{})
}
override.ContainerOverrides[0].Command = []*string{aws.String(c)}
override.ContainerOverrides[0].Command = aws.StringSlice(strings.Split(c, " "))
bytes, err := jsonutil.BuildJSON(override)
t.Must(err)
target.Input = aws.String(string(bytes))
Expand Down

0 comments on commit a95a8f5

Please sign in to comment.