mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
5479df79c7
As of now promoting (or demoting) a node that has its role left unchanged will always print a successful message. This PR fixes the issue by matching the behavior on swarmkit's swarmctl command and printing a message when desired role is the current role of the node. As a result this also avoids calling update when it is not necessary. Signed-off-by: Alexandre Beslic <alexandre.beslic@gmail.com> |
||
---|---|---|
.. | ||
cmd.go | ||
demote.go | ||
inspect.go | ||
list.go | ||
opts.go | ||
promote.go | ||
ps.go | ||
remove.go | ||
update.go |