default description if none set by user

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-08-31 17:00:27 +02:00
parent 4693ce91f6
commit 4d11594df0
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
2 changed files with 4 additions and 1 deletions

View File

@ -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
}

View File

@ -14,7 +14,7 @@
limitations under the License.
*/
package ecs_local_e2e
package main
import (
"fmt"