From a1d19119d2885610bb45bdc685ce668b7b6b74c4 Mon Sep 17 00:00:00 2001 From: Vedant Koditkar Date: Fri, 19 Aug 2022 15:25:22 +0530 Subject: [PATCH] Fix breaking test Signed-off-by: Vedant Koditkar --- pkg/compose/pull.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/compose/pull.go b/pkg/compose/pull.go index e244de81..addf2ad2 100644 --- a/pkg/compose/pull.go +++ b/pkg/compose/pull.go @@ -92,7 +92,16 @@ func (s *composeService) pull(ctx context.Context, project *types.Project, opts w.Event(progress.Event{ ID: service.Name, Status: progress.Done, - Text: "Exists", + Text: "Skipped - Image is already present locally", + }) + continue + } + default: + if _, ok := images[service.Image]; ok { + w.Event(progress.Event{ + ID: service.Name, + Status: progress.Done, + Text: "Skipped - Image is already present locally", }) continue }