修复自动化部署条件分支后的节点无法到达的问题

修复ssh测试不兼容IPv6的问题
This commit is contained in:
zhangchenhao
2025-05-26 14:23:33 +08:00
parent d3f9b05335
commit 85eaf5d4c0
2 changed files with 11 additions and 1 deletions

View File

@@ -264,7 +264,10 @@ func RunNode(node *WorkflowNode, ctx *ExecutionContext) error {
lastStatus := ctx.GetStatus(node.Config["fromNodeId"].(string))
for _, branch := range node.ConditionNodes {
if branch.Config["type"] == string(lastStatus) {
return RunNode(branch, ctx)
err := RunNode(branch, ctx)
if err != nil {
return fmt.Errorf("执行条件分支失败: %v", err)
}
}
}
}