correct is DC link

This commit is contained in:
mr
2024-08-20 16:22:06 +02:00
parent d13249d87d
commit c6ea2195ed
3 changed files with 41 additions and 14 deletions

View File

@@ -122,7 +122,11 @@ func (wfa *workflowMongoAccessor) book(id string, realData *Workflow, execs []*w
if code != 200 {
continue
}
b, err := paccess.LaunchPeerExecution(p.GetID(), "", p.(*peer.Peer).Url, utils.BOOKING, tools.POST,
url := p.(*peer.Peer).Url
if p.(*peer.Peer).IsMySelf() {
url = "http://" + utils.BOOKING.String()
}
b, err := paccess.LaunchPeerExecution(p.GetID(), "", url, utils.BOOKING, tools.POST,
(&workflow_execution.WorkflowExecutions{
WorkflowID: id,
ResourceID: dc_id,