Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
default description if none set by user
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <[email protected]>
  • Loading branch information
ndeloof committed Aug 31, 2020
1 parent 4693ce9 commit 59d10a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ecs/local/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ func (e ecsLocalSimulation) Logout(ctx context.Context) error {

func (e ecsLocalSimulation) CreateContextData(ctx context.Context, params interface{}) (contextData interface{}, description string, err error) {
opts := params.(ecs.ContextParams)
if opts.Description == "" {
opts.Description = "ECS local endpoints"
}
return struct{}{}, opts.Description, nil
}

0 comments on commit 59d10a5

Please sign in to comment.