1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

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.
This commit is contained in:
Lars Kruse 2019-08-12 01:04:09 +02:00
parent 6413375cdc
commit 276e96c0dd

View file

@ -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