From d004990b21dea5cf12fa2fc9f11c9ea994a1a1ae Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Sun, 11 Aug 2019 23:36:12 +0200 Subject: [PATCH] Plugin lxc: exit after autoconf Previously processing continued after a successful autoconf operation. --- plugins/lxc/lxc-multigraph | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/lxc/lxc-multigraph b/plugins/lxc/lxc-multigraph index 1067ca15..37c4dcc3 100755 --- a/plugins/lxc/lxc-multigraph +++ b/plugins/lxc/lxc-multigraph @@ -179,14 +179,12 @@ active_guests=$(active_guests $exclude) if [ "$1" = "autoconf" ]; then if [ ! -r /proc/net/dev ]; then echo "no (/proc/net/dev cannot be read)" - exit 0 - fi - if [ ! -e "$lxcpath" ]; then + elif [ ! -e "$lxcpath" ]; then echo "no ($lxcpath is not present)" - exit 0 + else + echo yes fi - - echo yes + exit 0 fi # --- CONFIG OUTPUT