Skip to content

Commit

Permalink
fix(api): handle complexe worker model name (#4091)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin authored and sguiheux committed Mar 25, 2019
1 parent e857bac commit 0da6f78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/api/workflow/process_requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func processNodeJobRunRequirements(db gorp.SqlExecutor, j sdk.Job, run *sdk.Work
errm.Append(sdk.ErrInvalidJobRequirementDuplicateModel)
break
}
value = strings.Split(value, " ")[0]
model = value
}

Expand Down Expand Up @@ -70,7 +71,7 @@ func processNodeJobRunRequirements(db gorp.SqlExecutor, j sdk.Job, run *sdk.Work
for _, cap := range wm.RegisteredCapabilities {
if cap.Value == req.Value {
hasCapa = true
break
break
}
}
if !hasCapa {
Expand Down

0 comments on commit 0da6f78

Please sign in to comment.