Skip to content

Commit c8e75fb

Browse files
fix-cd-pipeline-check (#6658)
1 parent 10b8620 commit c8e75fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/appWorkflow/AppWorkflowService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ func (impl AppWorkflowServiceImpl) FindAppWorkflowMappingForEnv(appIds []int) (m
437437
workflowMappings := make(map[int][]bean4.AppWorkflowMappingDto)
438438
workflows := make(map[int]*bean4.AppWorkflowDto)
439439
for _, w := range appWorkflowMappings {
440-
if _, ok := pipelineMap[w.ComponentId]; !ok {
440+
if _, ok := pipelineMap[w.ComponentId]; !ok && w.Type == "CD_PIPELINE" {
441441
impl.Logger.Warnw("pipeline not found for componentId", "componentId", w.ComponentId, "appWorkflowId", w.AppWorkflowId)
442442
// If the pipeline is not found, we skip adding this mapping as one possible reason would be pipeline have been deleted
443443
continue

0 commit comments

Comments
 (0)