9d14a49a6b3865ae42d4177b3a35342ae4287fd8
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> Upstream-commit: 5479df79c7859d5a09f42c22ddb5fa3e56ceeb7c Component: engine
Description
No description provided
310 MiB
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%