From 276e96c0ddf458d06f156b2bf17d825830c5c925 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Mon, 12 Aug 2019 01:04:09 +0200 Subject: [PATCH] Plugin lxc: remove ineffective "sort -u" from function "active_guests" The output of "lxc-ls" is not line-splitted. Thus all active guests are printed in a single line and "sort -u" (removal of non-unique entries) had no effect. --- plugins/lxc/lxc-multigraph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/lxc/lxc-multigraph b/plugins/lxc/lxc-multigraph index aa63f679..72eeb382 100755 --- a/plugins/lxc/lxc-multigraph +++ b/plugins/lxc/lxc-multigraph @@ -96,7 +96,7 @@ cgrouppath=${cgrouppath:-} function active_guests { local guest_name i ok - for guest_name in $(lxc-ls | sort -u) + for guest_name in $(lxc-ls) do # handle optional exclude list in $1 ok=1