From: EdĂȘnis Freindorfer Azevedo Date: Fri, 27 Aug 2021 11:48:38 +0000 (-0300) Subject: Use `--running` instead of `--active`. X-Git-Tag: lxc-5.0.0~91^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2173e808ca7205afdc94d324348484e6e8327383;p=thirdparty%2Flxc.git Use `--running` instead of `--active`. Commands block if container is frozen. Signed-off-by: EdĂȘnis Freindorfer Azevedo --- diff --git a/config/bash/lxc.in b/config/bash/lxc.in index c93f3d00f..457a5b80f 100644 --- a/config/bash/lxc.in +++ b/config/bash/lxc.in @@ -3,7 +3,7 @@ _lxc_names() { case ${words[0]} in lxc-attach | lxc-cgroup | lxc-checkpoint | lxc-console | lxc-device | lxc-freeze | lxc-stop ) - COMPREPLY=( $( compgen -W "$( command lxc-ls --active )" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "$( command lxc-ls --running )" -- "$cur" ) ) ;; lxc-destroy | lxc-execute | lxc-snapshot | lxc-start ) COMPREPLY=( $( compgen -W "$( command lxc-ls --stopped )" -- "$cur" ) )