1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/client/node
Alexandre Beslic 5479df79c7 swarm: improve cli output on node promote/demote for unchanged role
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>
2016-08-05 15:51:32 -07:00
..
cmd.go cli: docker service|node|stack ps instead of tasks 2016-07-27 11:06:42 -07:00
demote.go swarm: improve cli output on node promote/demote for unchanged role 2016-08-05 15:51:32 -07:00
inspect.go Remove shorthand flags for "mount", "pretty", and "no-resolve" 2016-07-13 18:47:29 +02:00
list.go Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
opts.go Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
promote.go swarm: improve cli output on node promote/demote for unchanged role 2016-08-05 15:51:32 -07:00
ps.go cli: docker service|node|stack ps instead of tasks 2016-07-27 11:06:42 -07:00
remove.go Add --force to node removal 2016-08-01 18:55:58 -07:00
update.go swarm: improve cli output on node promote/demote for unchanged role 2016-08-05 15:51:32 -07:00