Skip to content

Commit

Permalink
Merge pull request TencentBlueKing#2923 from wangyu096/issue_2903
Browse files Browse the repository at this point in the history
feat: 容器执行支持灰度 TencentBlueKing#2903
  • Loading branch information
jsonwan authored Apr 22, 2024
2 parents e9c0f6e + 8bc636b commit 90f4aef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ private boolean isContainerExecuteJob(List<StepInstanceDTO> stepInstanceList,
stepInstance.getTargetExecuteObjects().hasContainerExecuteObject()) ||
CollectionUtils.isNotEmpty(stepInstance.getFileSourceList()) &&
stepInstance.getFileSourceList().stream()
.anyMatch(fileSource -> fileSource.getServers().hasContainerExecuteObject()));
.anyMatch(fileSource -> fileSource.getServers() != null &&
fileSource.getServers().hasContainerExecuteObject()));
if (isContainerExecuteJob) {
return true;
}
Expand Down

0 comments on commit 90f4aef

Please sign in to comment.