소스 검색

Fix breaking test

Signed-off-by: Vedant Koditkar <[email protected]>
Vedant Koditkar 3 년 전
부모
커밋
a1d19119d2
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      pkg/compose/pull.go

+ 10 - 1
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
 			}