Skip to content

Commit

Permalink
internal/cloudapi/v2/handler: use compose id for filename
Browse files Browse the repository at this point in the history
For easier tracing and finding the result in AWS,
we should use the compose id in the filename.
  • Loading branch information
schuellerf committed Dec 13, 2024
1 parent e90010f commit 476cbd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cloudapi/v2/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ func (h *apiHandlers) postCloneComposeImpl(ctx echo.Context, id string) error {
Ami: options.Ami,
SourceRegion: options.Region,
TargetRegion: img.Region,
TargetName: fmt.Sprintf("composer-api-%s", uuid.New().String()),
TargetName: fmt.Sprintf("composer-api-%s", finalJob),
}
finalJob, err = h.server.workers.EnqueueAWSEC2CopyJob(copyJob, finalJob, channel)
if err != nil {
Expand Down

0 comments on commit 476cbd7

Please sign in to comment.