Skip to content

Commit 463aea8

Browse files
committed
Fixed the logic. My bad.
Signed-off-by: Simone Giacomel <[email protected]>
1 parent 635e1ac commit 463aea8

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
@@ -119,7 +119,7 @@ func nodeMatches(s *api.Service, n *api.Node) bool {
119119
return false
120120
}
121121

122-
if s.Spec.Task.Placement != nil {
122+
if s.Spec.Task.Placement == nil {
123123
return false
124124
}
125125

0 commit comments

Comments
 (0)