1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00

Bash completion for docker node update completes only one node

`docker node update` accepts only one node.
Before this change, bash completion would complete additional nodes.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bd1c58ccaf
Component: cli
This commit is contained in:
Harald Albers
2017-03-17 09:33:55 +01:00
committed by Tibor Vass
parent 85f1d4b553
commit f9360e39d0

View File

@@ -3526,7 +3526,11 @@ _docker_node_update() {
COMPREPLY=( $( compgen -W "--availability --help --label-add --label-rm --role" -- "$cur" ) )
;;
*)
__docker_complete_nodes
local counter=$(__docker_pos_first_nonflag '--availability|--label-add|--label-rm|--role')
if [ $cword -eq $counter ]; then
__docker_complete_nodes
fi
;;
esac
}