scripts/bash/lxd-client: fix autocompletion not working

Autocompletion of commands for running guests which are in a state other than RUNNING doesn't work. 

This change adds READY so now, autocompletion in lxc shell, lxc stop, lxc exec, work as expected

Signed-off-by: Norberto Bensa <nbensa@gmail.com>
This commit is contained in:
Norberto Bensa 2022-11-21 23:25:29 -03:00 committed by GitHub
parent 153ad923e4
commit 229a643daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,7 +243,7 @@ _have lxc && {
_lxd_names "(STOPPED|FROZEN)"
;;
"exec"|"console"|"stop"|"shell")
_lxd_names "RUNNING"
_lxd_names "RUNNING|READY"
;;
"file")
COMPREPLY=( $(compgen -W "pull push edit delete mount" -- $cur) )