From 229a643daaf2f328fd99b5e3f693b6f03b41a76b Mon Sep 17 00:00:00 2001 From: Norberto Bensa Date: Mon, 21 Nov 2022 23:25:29 -0300 Subject: [PATCH] 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 --- scripts/bash/lxd-client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bash/lxd-client b/scripts/bash/lxd-client index e20ad23e5e..d02eab9967 100644 --- a/scripts/bash/lxd-client +++ b/scripts/bash/lxd-client @@ -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) )