Skip to content

Commit 228e8e8

Browse files
committed
remove pipelineStrategy
1 parent 03a18d9 commit 228e8e8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkg/configDiff/DeploymentConfigurationService.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ func (impl *DeploymentConfigurationServiceImpl) getConfigDataForDeploymentHistor
229229
impl.logger.Errorw("getConfigDataForDeploymentHistory, error in getPipelineStrategyConfigHistory", "configDataQueryParams", configDataQueryParams, "err", err)
230230
return nil, err
231231
}
232-
configDataDto.WithPipelineConfigData(pipelineConfig)
232+
if len(pipelineConfig.Data) > 0 {
233+
configDataDto.WithPipelineConfigData(pipelineConfig)
234+
}
235+
233236
// fetching for pipeline strategy config ends
234237

235238
// fetching for cm config starts
@@ -629,7 +632,9 @@ func (impl *DeploymentConfigurationServiceImpl) getPublishedConfigData(ctx conte
629632
impl.logger.Errorw("getPublishedConfigData, error in getting publishedOnly pipeline strategy ", "configDataQueryParams", configDataQueryParams, "err", err)
630633
return nil, err
631634
}
632-
configData.WithPipelineConfigData(pipelineConfigData)
635+
if len(pipelineConfigData.Data) > 0 {
636+
configData.WithPipelineConfigData(pipelineConfigData)
637+
}
633638
return configData, nil
634639
}
635640

0 commit comments

Comments
 (0)