diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in index 9293323c9..f26572da2 100644 --- a/src/lxc/lxc-ls.in +++ b/src/lxc/lxc-ls.in @@ -75,7 +75,7 @@ directory=$(readlink -f "$lxc_path") for i in "$@"; do case $i in --help) - help; exit 1;; + help; exit;; --active) get_parent_cgroup; directory="$parent_cgroup"; shift;; --) @@ -90,10 +90,5 @@ if [ ! -z "$directory" ]; then containers=$(find $directory -mindepth 1 -maxdepth 1 -type d -printf "%f\n" 2>/dev/null) fi -if [ -z "$containers" ]; then - echo "$(basename $0): no containers found" >&2 - exit 1 -fi - cd "$directory" ls -d $@ -- $containers