Skip to content

Commit 9cb517e

Browse files
committed
Update task.go
Met the requirements if the constraints are empty
1 parent 8dfc802 commit 9cb517e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/orchestrator/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func nodeMatches(s *api.Service, n *api.Node) bool {
120120
}
121121

122122
if s.Spec.Task.Placement == nil {
123-
return false
123+
return true
124124
}
125125

126126
constraints, _ := constraint.Parse(s.Spec.Task.Placement.Constraints)

0 commit comments

Comments
 (0)