From 295325eb80416e29c31d9a5aea0ea33a43a5fba1 Mon Sep 17 00:00:00 2001 From: "Kim B. Heino" Date: Mon, 4 Dec 2023 15:51:25 +0200 Subject: [PATCH] kea: fix autoconf, it always returned "yes" I changed read_data's return value after testing autoconf. Oops... --- plugins/dhcp/kea | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dhcp/kea b/plugins/dhcp/kea index 3db9e3ff..7c5c7cef 100755 --- a/plugins/dhcp/kea +++ b/plugins/dhcp/kea @@ -186,7 +186,7 @@ def fetch(data): if __name__ == '__main__': if len(sys.argv) > 1 and sys.argv[1] == 'autoconf': - print('yes' if read_data() else 'no (no Kea statistics)') + print('yes' if read_data()[0] else 'no (no Kea statistics)') elif len(sys.argv) > 1 and sys.argv[1] == 'config': config(read_data()) else: