Skip to content

Commit

Permalink
Merge pull request #74 from bonty/feature/fix-working-directory
Browse files Browse the repository at this point in the history
fix register task definition when WorkingDirectory is empty
  • Loading branch information
stormcat24 committed Apr 11, 2016
2 parents 029de2b + 8671dae commit baae960
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ func createContainerDefinition(con *ContainerDefinition) (*ecs.ContainerDefiniti
Privileged: aws.Bool(con.Privileged),
ReadonlyRootFilesystem: aws.Bool(con.ReadonlyRootFilesystem),
Ulimits: toUlimits(con.Ulimits),
WorkingDirectory: aws.String(con.WorkingDirectory),
}

if con.Hostname != "" {
Expand All @@ -245,6 +244,9 @@ func createContainerDefinition(con *ContainerDefinition) (*ecs.ContainerDefiniti
if con.User != "" {
cd.User = aws.String(con.User)
}
if con.WorkingDirectory != "" {
cd.WorkingDirectory = aws.String(con.WorkingDirectory)
}

return cd, volumes, nil
}
Expand Down

0 comments on commit baae960

Please sign in to comment.