Merge pull request #31915 from albers/fix-completion-node-update

Bash completion for `docker node update` completes only one node
This commit is contained in:
Sebastiaan van Stijn 2017-03-20 14:10:25 +01:00 committed by GitHub
commit 1ed277a268

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
}