Skip to content

Commit c479e01

Browse files
authored
Update task.go
Met the requirements if the constraints are empty
1 parent 9cf4444 commit c479e01

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)